Interface Contacts
public interface Contacts
Resource collection API of Contacts.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Contact resource.void
Deletes a specified contact.void
delete
(String resourceGroupName, String spacecraftName, String contactName, com.azure.core.util.Context context) Deletes a specified contact.void
deleteById
(String id) Deletes a specified contact.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a specified contact.Gets the specified contact in a specified resource group.Gets the specified contact in a specified resource group.com.azure.core.http.rest.Response<Contact>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets the specified contact in a specified resource group.com.azure.core.http.rest.Response<Contact>
getWithResponse
(String resourceGroupName, String spacecraftName, String contactName, com.azure.core.util.Context context) Gets the specified contact in a specified resource group.com.azure.core.http.rest.PagedIterable<Contact>
Returns list of contacts by spacecraftName.com.azure.core.http.rest.PagedIterable<Contact>
list
(String resourceGroupName, String spacecraftName, String skiptoken, com.azure.core.util.Context context) Returns list of contacts by spacecraftName.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<Contact> list(String resourceGroupName, String spacecraftName) Returns list of contacts by spacecraftName.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.- Returns:
- response for the ListContacts API service call as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<Contact> list(String resourceGroupName, String spacecraftName, String skiptoken, com.azure.core.util.Context context) Returns list of contacts by spacecraftName.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.skiptoken
- An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.context
- The context to associate with this operation.- Returns:
- response for the ListContacts API service call as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets the specified contact in a specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.contactName
- Contact name.- Returns:
- the specified contact in a specified resource group.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<Contact> getWithResponse(String resourceGroupName, String spacecraftName, String contactName, com.azure.core.util.Context context) Gets the specified contact in a specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.contactName
- Contact name.context
- The context to associate with this operation.- Returns:
- the specified contact in a specified resource group along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a specified contact.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.contactName
- Contact name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String spacecraftName, String contactName, com.azure.core.util.Context context) Deletes a specified contact.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.contactName
- Contact name.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Gets the specified contact in a specified resource group.- Parameters:
id
- the resource ID.- Returns:
- the specified contact in a specified resource group along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Contact> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets the specified contact in a specified resource group.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the specified contact in a specified resource group along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Deletes a specified contact.- Parameters:
id
- the resource ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
Deletes a specified contact.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new Contact resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Contact definition.
-