Class IssueUpdateContractProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.models.IssueContractBaseProperties
com.azure.resourcemanager.apimanagement.fluent.models.IssueUpdateContractProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<IssueContractBaseProperties>

public final class IssueUpdateContractProperties extends IssueContractBaseProperties
Issue contract Update Properties.
  • Constructor Details

    • IssueUpdateContractProperties

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

    • title

      public String title()
      Get the title property: The issue title.
      Returns:
      the title value.
    • withTitle

      public IssueUpdateContractProperties withTitle(String title)
      Set the title property: The issue title.
      Parameters:
      title - the title value to set.
      Returns:
      the IssueUpdateContractProperties object itself.
    • description

      public String description()
      Get the description property: Text describing the issue.
      Returns:
      the description value.
    • withDescription

      public IssueUpdateContractProperties withDescription(String description)
      Set the description property: Text describing the issue.
      Parameters:
      description - the description value to set.
      Returns:
      the IssueUpdateContractProperties object itself.
    • userId

      public String userId()
      Get the userId property: A resource identifier for the user created the issue.
      Returns:
      the userId value.
    • withUserId

      public IssueUpdateContractProperties withUserId(String userId)
      Set the userId property: A resource identifier for the user created the issue.
      Parameters:
      userId - the userId value to set.
      Returns:
      the IssueUpdateContractProperties object itself.
    • withCreatedDate

      public IssueUpdateContractProperties withCreatedDate(OffsetDateTime createdDate)
      Set the createdDate property: Date and time when the issue was created.
      Overrides:
      withCreatedDate in class IssueContractBaseProperties
      Parameters:
      createdDate - the createdDate value to set.
      Returns:
      the IssueContractBaseProperties object itself.
    • withState

      public IssueUpdateContractProperties withState(State state)
      Set the state property: Status of the issue.
      Overrides:
      withState in class IssueContractBaseProperties
      Parameters:
      state - the state value to set.
      Returns:
      the IssueContractBaseProperties object itself.
    • withApiId

      public IssueUpdateContractProperties withApiId(String apiId)
      Set the apiId property: A resource identifier for the API the issue was created for.
      Overrides:
      withApiId in class IssueContractBaseProperties
      Parameters:
      apiId - the apiId value to set.
      Returns:
      the IssueContractBaseProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class IssueContractBaseProperties
      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<IssueContractBaseProperties>
      Overrides:
      toJson in class IssueContractBaseProperties
      Throws:
      IOException
    • fromJson

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