ServiceCorrelationDescription Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.ServiceCorrelationDescription

Implements

public final class ServiceCorrelationDescription
implements JsonSerializable<ServiceCorrelationDescription>

Creates a particular correlation between services.

Constructor Summary

Constructor Description
ServiceCorrelationDescription()

Creates an instance of ServiceCorrelationDescription class.

Method Summary

Modifier and Type Method and Description
static ServiceCorrelationDescription fromJson(JsonReader jsonReader)

Reads an instance of ServiceCorrelationDescription from the JsonReader.

ServiceCorrelationScheme scheme()

Get the scheme property: The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName.

String serviceName()

Get the serviceName property: The name of the service that the correlation relationship is established with.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServiceCorrelationDescription withScheme(ServiceCorrelationScheme scheme)

Set the scheme property: The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName.

ServiceCorrelationDescription withServiceName(String serviceName)

Set the serviceName property: The name of the service that the correlation relationship is established with.

Methods inherited from java.lang.Object

Constructor Details

ServiceCorrelationDescription

public ServiceCorrelationDescription()

Creates an instance of ServiceCorrelationDescription class.

Method Details

fromJson

public static ServiceCorrelationDescription fromJson(JsonReader jsonReader)

Reads an instance of ServiceCorrelationDescription from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

scheme

public ServiceCorrelationScheme scheme()

Get the scheme property: The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName.

Returns:

the scheme value.

serviceName

public String serviceName()

Get the serviceName property: The name of the service that the correlation relationship is established with.

Returns:

the serviceName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withScheme

public ServiceCorrelationDescription withScheme(ServiceCorrelationScheme scheme)

Set the scheme property: The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName.

Parameters:

scheme - the scheme value to set.

Returns:

the ServiceCorrelationDescription object itself.

withServiceName

public ServiceCorrelationDescription withServiceName(String serviceName)

Set the serviceName property: The name of the service that the correlation relationship is established with.

Parameters:

serviceName - the serviceName value to set.

Returns:

the ServiceCorrelationDescription object itself.

Applies to