Interface ContactsClient
public interface ContactsClient
An instance of this class provides access to all the operations defined in ContactsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContactInner>,
ContactInner> beginCreate
(String resourceGroupName, String spacecraftName, String contactName, ContactInner parameters) Creates a contact.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContactInner>,
ContactInner> beginCreate
(String resourceGroupName, String spacecraftName, String contactName, ContactInner parameters, com.azure.core.util.Context context) Creates a contact.beginDelete
(String resourceGroupName, String spacecraftName, String contactName) Deletes a specified contact.beginDelete
(String resourceGroupName, String spacecraftName, String contactName, com.azure.core.util.Context context) Deletes a specified contact.create
(String resourceGroupName, String spacecraftName, String contactName, ContactInner parameters) Creates a contact.create
(String resourceGroupName, String spacecraftName, String contactName, ContactInner parameters, com.azure.core.util.Context context) Creates a contact.void
Deletes a specified contact.void
delete
(String resourceGroupName, String spacecraftName, String contactName, com.azure.core.util.Context context) Deletes a specified contact.Gets the specified contact in a specified resource group.com.azure.core.http.rest.Response<ContactInner>
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<ContactInner>
Returns list of contacts by spacecraftName.com.azure.core.http.rest.PagedIterable<ContactInner>
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<ContactInner> 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<ContactInner> 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<ContactInner> 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContactInner>,ContactInner> beginCreate(String resourceGroupName, String spacecraftName, String contactName, ContactInner parameters) Creates a contact.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.contactName
- Contact name.parameters
- The parameters to provide for the created contact.- Returns:
- the
SyncPoller
for polling of customer creates a contact resource for a spacecraft resource. - 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContactInner>,ContactInner> beginCreate(String resourceGroupName, String spacecraftName, String contactName, ContactInner parameters, com.azure.core.util.Context context) Creates a contact.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.contactName
- Contact name.parameters
- The parameters to provide for the created contact.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of customer creates a contact resource for a spacecraft resource. - 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.
-
create
ContactInner create(String resourceGroupName, String spacecraftName, String contactName, ContactInner parameters) Creates a contact.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.contactName
- Contact name.parameters
- The parameters to provide for the created contact.- Returns:
- customer creates a contact resource for a spacecraft resource.
- 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.
-
create
ContactInner create(String resourceGroupName, String spacecraftName, String contactName, ContactInner parameters, com.azure.core.util.Context context) Creates a contact.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.contactName
- Contact name.parameters
- The parameters to provide for the created contact.context
- The context to associate with this operation.- Returns:
- customer creates a contact resource for a spacecraft resource.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String spacecraftName, String contactName) Deletes a specified contact.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.spacecraftName
- Spacecraft ID.contactName
- Contact name.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
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.
-