ServiceCorrelationDescription Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. ServiceCorrelationDescription
- com.
Implements
public final class ServiceCorrelationDescription
implements JsonSerializable<ServiceCorrelationDescription>
Creates a particular correlation between services.
Constructor Summary
| Constructor | Description |
|---|---|
| ServiceCorrelationDescription() |
Creates an instance of Service |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
|
Service |
scheme()
Get the scheme property: The Service |
| String |
serviceName()
Get the service |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Service |
withScheme(ServiceCorrelationScheme scheme)
Set the scheme property: The Service |
|
Service |
withServiceName(String serviceName)
Set the service |
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:
Returns:
Throws:
scheme
public ServiceCorrelationScheme scheme()
Get the scheme property: The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName.
Returns:
serviceName
public String serviceName()
Get the serviceName property: The name of the service that the correlation relationship is established with.
Returns:
toJson
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:
Returns:
withServiceName
public ServiceCorrelationDescription withServiceName(String serviceName)
Set the serviceName property: The name of the service that the correlation relationship is established with.
Parameters:
Returns: