Class OperationEntityBaseContract

java.lang.Object
com.azure.resourcemanager.apimanagement.models.OperationEntityBaseContract
All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationEntityBaseContract>
Direct Known Subclasses:
OperationContractProperties, OperationUpdateContractProperties

public class OperationEntityBaseContract extends Object implements com.azure.json.JsonSerializable<OperationEntityBaseContract>
API Operation Entity Base Contract details.
  • Constructor Details

    • OperationEntityBaseContract

      public OperationEntityBaseContract()
      Creates an instance of OperationEntityBaseContract class.
  • Method Details

    • templateParameters

      public List<ParameterContract> templateParameters()
      Get the templateParameters property: Collection of URL template parameters.
      Returns:
      the templateParameters value.
    • withTemplateParameters

      public OperationEntityBaseContract withTemplateParameters(List<ParameterContract> templateParameters)
      Set the templateParameters property: Collection of URL template parameters.
      Parameters:
      templateParameters - the templateParameters value to set.
      Returns:
      the OperationEntityBaseContract object itself.
    • description

      public String description()
      Get the description property: Description of the operation. May include HTML formatting tags.
      Returns:
      the description value.
    • withDescription

      public OperationEntityBaseContract withDescription(String description)
      Set the description property: Description of the operation. May include HTML formatting tags.
      Parameters:
      description - the description value to set.
      Returns:
      the OperationEntityBaseContract object itself.
    • request

      public RequestContract request()
      Get the request property: An entity containing request details.
      Returns:
      the request value.
    • withRequest

      public OperationEntityBaseContract withRequest(RequestContract request)
      Set the request property: An entity containing request details.
      Parameters:
      request - the request value to set.
      Returns:
      the OperationEntityBaseContract object itself.
    • responses

      public List<ResponseContract> responses()
      Get the responses property: Array of Operation responses.
      Returns:
      the responses value.
    • withResponses

      public OperationEntityBaseContract withResponses(List<ResponseContract> responses)
      Set the responses property: Array of Operation responses.
      Parameters:
      responses - the responses value to set.
      Returns:
      the OperationEntityBaseContract object itself.
    • policies

      public String policies()
      Get the policies property: Operation Policies.
      Returns:
      the policies value.
    • withPolicies

      public OperationEntityBaseContract withPolicies(String policies)
      Set the policies property: Operation Policies.
      Parameters:
      policies - the policies value to set.
      Returns:
      the OperationEntityBaseContract object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OperationEntityBaseContract>
      Throws:
      IOException
    • fromJson

      public static OperationEntityBaseContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OperationEntityBaseContract from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OperationEntityBaseContract 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 OperationEntityBaseContract.