Class CalculateExchangeOperationResultResponseInner
java.lang.Object
com.azure.resourcemanager.reservations.fluent.models.CalculateExchangeOperationResultResponseInner
CalculateExchange operation result.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CalculateExchangeOperationResultResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionerror()
Get the error property: Required if status == failed or status == canceled.id()
Get the id property: It should match what is used to GET the operation result.name()
Get the name property: It must match the last segment of the id field, and will typically be a GUID / system generated value.Get the properties property: CalculateExchange response properties.status()
Get the status property: Status of the operation.void
validate()
Validates the instance.withError
(OperationResultError error) Set the error property: Required if status == failed or status == canceled.Set the id property: It should match what is used to GET the operation result.Set the name property: It must match the last segment of the id field, and will typically be a GUID / system generated value.withProperties
(CalculateExchangeResponseProperties properties) Set the properties property: CalculateExchange response properties.Set the status property: Status of the operation.
-
Constructor Details
-
CalculateExchangeOperationResultResponseInner
public CalculateExchangeOperationResultResponseInner()Creates an instance of CalculateExchangeOperationResultResponseInner class.
-
-
Method Details
-
id
Get the id property: It should match what is used to GET the operation result.- Returns:
- the id value.
-
withId
Set the id property: It should match what is used to GET the operation result.- Parameters:
id
- the id value to set.- Returns:
- the CalculateExchangeOperationResultResponseInner object itself.
-
name
Get the name property: It must match the last segment of the id field, and will typically be a GUID / system generated value.- Returns:
- the name value.
-
withName
Set the name property: It must match the last segment of the id field, and will typically be a GUID / system generated value.- Parameters:
name
- the name value to set.- Returns:
- the CalculateExchangeOperationResultResponseInner object itself.
-
status
Get the status property: Status of the operation.- Returns:
- the status value.
-
withStatus
public CalculateExchangeOperationResultResponseInner withStatus(CalculateExchangeOperationResultStatus status) Set the status property: Status of the operation.- Parameters:
status
- the status value to set.- Returns:
- the CalculateExchangeOperationResultResponseInner object itself.
-
properties
Get the properties property: CalculateExchange response properties.- Returns:
- the properties value.
-
withProperties
public CalculateExchangeOperationResultResponseInner withProperties(CalculateExchangeResponseProperties properties) Set the properties property: CalculateExchange response properties.- Parameters:
properties
- the properties value to set.- Returns:
- the CalculateExchangeOperationResultResponseInner object itself.
-
error
Get the error property: Required if status == failed or status == canceled.- Returns:
- the error value.
-
withError
Set the error property: Required if status == failed or status == canceled.- Parameters:
error
- the error value to set.- Returns:
- the CalculateExchangeOperationResultResponseInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-