Interface EmailServices
public interface EmailServices
Resource collection API of EmailServices.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new EmailServiceResource resource.void
Deletevoid
deleteById
(String id) Deletevoid
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletevoid
deleteByResourceGroup
(String resourceGroupName, String emailServiceName) DeleteGetcom.azure.core.http.rest.Response<EmailServiceResource>
getByIdWithResponse
(String id, com.azure.core.util.Context context) GetgetByResourceGroup
(String resourceGroupName, String emailServiceName) Getcom.azure.core.http.rest.Response<EmailServiceResource>
getByResourceGroupWithResponse
(String resourceGroupName, String emailServiceName, com.azure.core.util.Context context) Getcom.azure.core.http.rest.PagedIterable<EmailServiceResource>
list()
List By Subscriptioncom.azure.core.http.rest.PagedIterable<EmailServiceResource>
list
(com.azure.core.util.Context context) List By Subscriptioncom.azure.core.http.rest.PagedIterable<EmailServiceResource>
listByResourceGroup
(String resourceGroupName) List By Resource Groupcom.azure.core.http.rest.PagedIterable<EmailServiceResource>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List By Resource GroupList Verified Domains From Exchange OnlinelistVerifiedExchangeOnlineDomainsWithResponse
(com.azure.core.util.Context context) List Verified Domains From Exchange Online
-
Method Details
-
getByResourceGroup
GetGet the EmailService and its properties.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.emailServiceName
- The name of the EmailService resource.- Returns:
- the EmailService and its properties.
- 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<EmailServiceResource> getByResourceGroupWithResponse(String resourceGroupName, String emailServiceName, com.azure.core.util.Context context) GetGet the EmailService and its properties.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.emailServiceName
- The name of the EmailService resource.context
- The context to associate with this operation.- Returns:
- the EmailService and its properties 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
DeleteOperation to delete a EmailService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.emailServiceName
- The name of the EmailService 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.
-
delete
DeleteOperation to delete a EmailService.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.emailServiceName
- The name of the EmailService resource.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<EmailServiceResource> list()List By SubscriptionHandles requests to list all resources in a subscription.
- Returns:
- object that includes an array of EmailServices and a possible link for next set 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<EmailServiceResource> list(com.azure.core.util.Context context) List By SubscriptionHandles requests to list all resources in a subscription.
- Parameters:
context
- The context to associate with this operation.- Returns:
- object that includes an array of EmailServices and a possible link for next set 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<EmailServiceResource> listByResourceGroup(String resourceGroupName) List By Resource GroupHandles requests to list all resources in a resource group.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- object that includes an array of EmailServices and a possible link for next set 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<EmailServiceResource> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List By Resource GroupHandles requests to list all resources in a resource group.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- object that includes an array of EmailServices and a possible link for next set 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.
-
listVerifiedExchangeOnlineDomains
List Verified Domains From Exchange OnlineGet a list of domains that are fully verified in Exchange Online.
- Returns:
- a list of domains that are fully verified in Exchange Online.
- 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.
-
listVerifiedExchangeOnlineDomainsWithResponse
com.azure.core.http.rest.Response<List<String>> listVerifiedExchangeOnlineDomainsWithResponse(com.azure.core.util.Context context) List Verified Domains From Exchange OnlineGet a list of domains that are fully verified in Exchange Online.
- Parameters:
context
- The context to associate with this operation.- Returns:
- a list of domains that are fully verified in Exchange Online 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.
-
getById
GetGet the EmailService and its properties.
- Parameters:
id
- the resource ID.- Returns:
- the EmailService and its properties 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<EmailServiceResource> getByIdWithResponse(String id, com.azure.core.util.Context context) GetGet the EmailService and its properties.
- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the EmailService and its properties 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
DeleteOperation to delete a EmailService.
- 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
DeleteOperation to delete a EmailService.
- 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 EmailServiceResource resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new EmailServiceResource definition.
-