SmtpUsernames Interface

public interface SmtpUsernames

Resource collection API of SmtpUsernames.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new SmtpUsernameResource resource.

abstract void delete(String resourceGroupName, String communicationServiceName, String smtpUsername)

Delete Operation to delete a single SmtpUsername resource.

abstract void deleteById(String id)

Delete Operation to delete a single SmtpUsername resource.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete Operation to delete a single SmtpUsername resource.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String communicationServiceName, String smtpUsername, Context context)

Delete Operation to delete a single SmtpUsername resource.

abstract SmtpUsernameResource get(String resourceGroupName, String communicationServiceName, String smtpUsername)

Get Get a SmtpUsernameResource.

abstract SmtpUsernameResource getById(String id)

Get Get a SmtpUsernameResource.

abstract Response<SmtpUsernameResource> getByIdWithResponse(String id, Context context)

Get Get a SmtpUsernameResource.

abstract Response<SmtpUsernameResource> getWithResponse(String resourceGroupName, String communicationServiceName, String smtpUsername, Context context)

Get Get a SmtpUsernameResource.

abstract PagedIterable<SmtpUsernameResource> list(String resourceGroupName, String communicationServiceName)

Get Get all SmtpUsernameResources for a Communication resource.

abstract PagedIterable<SmtpUsernameResource> list(String resourceGroupName, String communicationServiceName, Context context)

Get Get all SmtpUsernameResources for a Communication resource.

Method Details

define

public abstract SmtpUsernameResource.DefinitionStages.Blank define(String name)

Begins definition for a new SmtpUsernameResource resource.

Parameters:

name - resource name.

Returns:

the first stage of the new SmtpUsernameResource definition.

delete

public abstract void delete(String resourceGroupName, String communicationServiceName, String smtpUsername)

Delete Operation to delete a single SmtpUsername resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
communicationServiceName - The name of the CommunicationService resource.
smtpUsername - The name of the SmtpUsernameResource.

deleteById

public abstract void deleteById(String id)

Delete Operation to delete a single SmtpUsername resource.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete Operation to delete a single SmtpUsername resource.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceGroupName, String communicationServiceName, String smtpUsername, Context context)

Delete Operation to delete a single SmtpUsername resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
communicationServiceName - The name of the CommunicationService resource.
smtpUsername - The name of the SmtpUsernameResource.
context - The context to associate with this operation.

Returns:

get

public abstract SmtpUsernameResource get(String resourceGroupName, String communicationServiceName, String smtpUsername)

Get Get a SmtpUsernameResource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
communicationServiceName - The name of the CommunicationService resource.
smtpUsername - The name of the SmtpUsernameResource.

Returns:

a SmtpUsernameResource.

getById

public abstract SmtpUsernameResource getById(String id)

Get Get a SmtpUsernameResource.

Parameters:

id - the resource ID.

Returns:

a SmtpUsernameResource along with Response<T>.

getByIdWithResponse

public abstract Response<SmtpUsernameResource> getByIdWithResponse(String id, Context context)

Get Get a SmtpUsernameResource.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

a SmtpUsernameResource along with Response<T>.

getWithResponse

public abstract Response<SmtpUsernameResource> getWithResponse(String resourceGroupName, String communicationServiceName, String smtpUsername, Context context)

Get Get a SmtpUsernameResource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
communicationServiceName - The name of the CommunicationService resource.
smtpUsername - The name of the SmtpUsernameResource.
context - The context to associate with this operation.

Returns:

a SmtpUsernameResource along with Response<T>.

list

public abstract PagedIterable<SmtpUsernameResource> list(String resourceGroupName, String communicationServiceName)

Get Get all SmtpUsernameResources for a Communication resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
communicationServiceName - The name of the CommunicationService resource.

Returns:

all SmtpUsernameResources for a Communication resource as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<SmtpUsernameResource> list(String resourceGroupName, String communicationServiceName, Context context)

Get Get all SmtpUsernameResources for a Communication resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
communicationServiceName - The name of the CommunicationService resource.
context - The context to associate with this operation.

Returns:

all SmtpUsernameResources for a Communication resource as paginated response with PagedIterable<T>.

Applies to