Interface ContactProfiles
public interface ContactProfiles
Resource collection API of ContactProfiles.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ContactProfile resource.void
Deletes a specified contact profile resource.void
deleteById
(String id) Deletes a specified contact profile resource.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a specified contact profile resource.void
deleteByResourceGroup
(String resourceGroupName, String contactProfileName) Deletes a specified contact profile resource.Gets the specified contact Profile in a specified resource group.com.azure.core.http.rest.Response<ContactProfile>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets the specified contact Profile in a specified resource group.getByResourceGroup
(String resourceGroupName, String contactProfileName) Gets the specified contact Profile in a specified resource group.com.azure.core.http.rest.Response<ContactProfile>
getByResourceGroupWithResponse
(String resourceGroupName, String contactProfileName, com.azure.core.util.Context context) Gets the specified contact Profile in a specified resource group.com.azure.core.http.rest.PagedIterable<ContactProfile>
list()
Returns list of contact profiles by Subscription.com.azure.core.http.rest.PagedIterable<ContactProfile>
Returns list of contact profiles by Subscription.com.azure.core.http.rest.PagedIterable<ContactProfile>
listByResourceGroup
(String resourceGroupName) Returns list of contact profiles by Resource Group.com.azure.core.http.rest.PagedIterable<ContactProfile>
listByResourceGroup
(String resourceGroupName, String skiptoken, com.azure.core.util.Context context) Returns list of contact profiles by Resource Group.
-
Method Details
-
getByResourceGroup
Gets the specified contact Profile in a specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.contactProfileName
- Contact Profile name.- Returns:
- the specified contact Profile 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ContactProfile> getByResourceGroupWithResponse(String resourceGroupName, String contactProfileName, com.azure.core.util.Context context) Gets the specified contact Profile in a specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.contactProfileName
- Contact Profile name.context
- The context to associate with this operation.- Returns:
- the specified contact Profile 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.
-
deleteByResourceGroup
Deletes a specified contact profile resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.contactProfileName
- Contact Profile 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 contactProfileName, com.azure.core.util.Context context) Deletes a specified contact profile resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.contactProfileName
- Contact Profile 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.
-
list
com.azure.core.http.rest.PagedIterable<ContactProfile> list()Returns list of contact profiles by Subscription.- Returns:
- response for the ListContactProfiles API service call as paginated response with
PagedIterable
. - Throws:
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<ContactProfile> list(String skiptoken, com.azure.core.util.Context context) Returns list of contact profiles by Subscription.- Parameters:
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 ListContactProfiles 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ContactProfile> listByResourceGroup(String resourceGroupName) Returns list of contact profiles by Resource Group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- response for the ListContactProfiles 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ContactProfile> listByResourceGroup(String resourceGroupName, String skiptoken, com.azure.core.util.Context context) Returns list of contact profiles by Resource Group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.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 ListContactProfiles 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.
-
getById
Gets the specified contact Profile in a specified resource group.- Parameters:
id
- the resource ID.- Returns:
- the specified contact Profile 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<ContactProfile> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets the specified contact Profile in a specified resource group.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the specified contact Profile 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 profile resource.- 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 profile resource.- 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 ContactProfile resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ContactProfile definition.
-