Contacts Interface

public interface Contacts

Resource collection API of Contacts.

Method Summary

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

Begins definition for a new Contact resource.

abstract void delete(String resourceGroupName, String spacecraftName, String contactName)

Deletes a specified contact.

abstract void delete(String resourceGroupName, String spacecraftName, String contactName, Context context)

Deletes a specified contact.

abstract void deleteById(String id)

Deletes a specified contact.

abstract void deleteByIdWithResponse(String id, Context context)

Deletes a specified contact.

abstract Contact get(String resourceGroupName, String spacecraftName, String contactName)

Gets the specified contact in a specified resource group.

abstract Contact getById(String id)

Gets the specified contact in a specified resource group.

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

Gets the specified contact in a specified resource group.

abstract Response<Contact> getWithResponse(String resourceGroupName, String spacecraftName, String contactName, Context context)

Gets the specified contact in a specified resource group.

abstract PagedIterable<Contact> list(String resourceGroupName, String spacecraftName)

Returns list of contacts by spacecraftName.

abstract PagedIterable<Contact> list(String resourceGroupName, String spacecraftName, String skiptoken, Context context)

Returns list of contacts by spacecraftName.

Method Details

define

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

Begins definition for a new Contact resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Contact definition.

delete

public abstract void delete(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.

delete

public abstract void delete(String resourceGroupName, String spacecraftName, String contactName, 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.

deleteById

public abstract void deleteById(String id)

Deletes a specified contact.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Context context)

Deletes a specified contact.

Parameters:

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

get

public abstract Contact get(String resourceGroupName, String spacecraftName, String contactName)

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.

getById

public abstract Contact getById(String id)

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<T>.

getByIdWithResponse

public abstract Response<Contact> getByIdWithResponse(String id, 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<T>.

getWithResponse

public abstract Response<Contact> getWithResponse(String resourceGroupName, String spacecraftName, String contactName, 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<T>.

list

public abstract 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<T>.

list

public abstract PagedIterable<Contact> list(String resourceGroupName, String spacecraftName, String skiptoken, 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<T>.

Applies to