Udostępnij za pośrednictwem


PartnerDestinationInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.PartnerDestinationInfo

Implements

public class PartnerDestinationInfo
implements JsonSerializable<PartnerDestinationInfo>

Properties of the corresponding partner destination of a Channel.

Constructor Summary

Constructor Description
PartnerDestinationInfo()

Creates an instance of PartnerDestinationInfo class.

Method Summary

Modifier and Type Method and Description
String azureSubscriptionId()

Get the azureSubscriptionId property: Azure subscription ID of the subscriber.

String endpointServiceContext()

Get the endpointServiceContext property: Additional context of the partner destination endpoint.

PartnerEndpointType endpointType()

Get the endpointType property: Type of the endpoint for the partner destination.

static PartnerDestinationInfo fromJson(JsonReader jsonReader)

Reads an instance of PartnerDestinationInfo from the JsonReader.

String name()

Get the name property: Name of the partner destination associated with the channel.

String resourceGroupName()

Get the resourceGroupName property: Azure Resource Group of the subscriber.

List<ResourceMoveChangeHistory> resourceMoveChangeHistory()

Get the resourceMoveChangeHistory property: Change history of the resource move.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PartnerDestinationInfo withAzureSubscriptionId(String azureSubscriptionId)

Set the azureSubscriptionId property: Azure subscription ID of the subscriber.

PartnerDestinationInfo withEndpointServiceContext(String endpointServiceContext)

Set the endpointServiceContext property: Additional context of the partner destination endpoint.

PartnerDestinationInfo withName(String name)

Set the name property: Name of the partner destination associated with the channel.

PartnerDestinationInfo withResourceGroupName(String resourceGroupName)

Set the resourceGroupName property: Azure Resource Group of the subscriber.

PartnerDestinationInfo withResourceMoveChangeHistory(List<ResourceMoveChangeHistory> resourceMoveChangeHistory)

Set the resourceMoveChangeHistory property: Change history of the resource move.

Methods inherited from java.lang.Object

Constructor Details

PartnerDestinationInfo

public PartnerDestinationInfo()

Creates an instance of PartnerDestinationInfo class.

Method Details

azureSubscriptionId

public String azureSubscriptionId()

Get the azureSubscriptionId property: Azure subscription ID of the subscriber. The partner destination associated with the channel will be created under this Azure subscription.

Returns:

the azureSubscriptionId value.

endpointServiceContext

public String endpointServiceContext()

Get the endpointServiceContext property: Additional context of the partner destination endpoint.

Returns:

the endpointServiceContext value.

endpointType

public PartnerEndpointType endpointType()

Get the endpointType property: Type of the endpoint for the partner destination.

Returns:

the endpointType value.

fromJson

public static PartnerDestinationInfo fromJson(JsonReader jsonReader)

Reads an instance of PartnerDestinationInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PartnerDestinationInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the PartnerDestinationInfo.

name

public String name()

Get the name property: Name of the partner destination associated with the channel.

Returns:

the name value.

resourceGroupName

public String resourceGroupName()

Get the resourceGroupName property: Azure Resource Group of the subscriber. The partner destination associated with the channel will be created under this resource group.

Returns:

the resourceGroupName value.

resourceMoveChangeHistory

public List<ResourceMoveChangeHistory> resourceMoveChangeHistory()

Get the resourceMoveChangeHistory property: Change history of the resource move.

Returns:

the resourceMoveChangeHistory value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAzureSubscriptionId

public PartnerDestinationInfo withAzureSubscriptionId(String azureSubscriptionId)

Set the azureSubscriptionId property: Azure subscription ID of the subscriber. The partner destination associated with the channel will be created under this Azure subscription.

Parameters:

azureSubscriptionId - the azureSubscriptionId value to set.

Returns:

the PartnerDestinationInfo object itself.

withEndpointServiceContext

public PartnerDestinationInfo withEndpointServiceContext(String endpointServiceContext)

Set the endpointServiceContext property: Additional context of the partner destination endpoint.

Parameters:

endpointServiceContext - the endpointServiceContext value to set.

Returns:

the PartnerDestinationInfo object itself.

withName

public PartnerDestinationInfo withName(String name)

Set the name property: Name of the partner destination associated with the channel.

Parameters:

name - the name value to set.

Returns:

the PartnerDestinationInfo object itself.

withResourceGroupName

public PartnerDestinationInfo withResourceGroupName(String resourceGroupName)

Set the resourceGroupName property: Azure Resource Group of the subscriber. The partner destination associated with the channel will be created under this resource group.

Parameters:

resourceGroupName - the resourceGroupName value to set.

Returns:

the PartnerDestinationInfo object itself.

withResourceMoveChangeHistory

public PartnerDestinationInfo withResourceMoveChangeHistory(List<ResourceMoveChangeHistory> resourceMoveChangeHistory)

Set the resourceMoveChangeHistory property: Change history of the resource move.

Parameters:

resourceMoveChangeHistory - the resourceMoveChangeHistory value to set.

Returns:

the PartnerDestinationInfo object itself.

Applies to