Class RoleEligibilityScheduleRequestPropertiesTicketInfo

java.lang.Object
com.azure.resourcemanager.authorization.models.RoleEligibilityScheduleRequestPropertiesTicketInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleEligibilityScheduleRequestPropertiesTicketInfo>

public final class RoleEligibilityScheduleRequestPropertiesTicketInfo extends Object implements com.azure.json.JsonSerializable<RoleEligibilityScheduleRequestPropertiesTicketInfo>
Ticket Info of the role eligibility.
  • Constructor Details

    • RoleEligibilityScheduleRequestPropertiesTicketInfo

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

    • ticketNumber

      public String ticketNumber()
      Get the ticketNumber property: Ticket number for the role eligibility.
      Returns:
      the ticketNumber value.
    • withTicketNumber

      public RoleEligibilityScheduleRequestPropertiesTicketInfo withTicketNumber(String ticketNumber)
      Set the ticketNumber property: Ticket number for the role eligibility.
      Parameters:
      ticketNumber - the ticketNumber value to set.
      Returns:
      the RoleEligibilityScheduleRequestPropertiesTicketInfo object itself.
    • ticketSystem

      public String ticketSystem()
      Get the ticketSystem property: Ticket system name for the role eligibility.
      Returns:
      the ticketSystem value.
    • withTicketSystem

      public RoleEligibilityScheduleRequestPropertiesTicketInfo withTicketSystem(String ticketSystem)
      Set the ticketSystem property: Ticket system name for the role eligibility.
      Parameters:
      ticketSystem - the ticketSystem value to set.
      Returns:
      the RoleEligibilityScheduleRequestPropertiesTicketInfo 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<RoleEligibilityScheduleRequestPropertiesTicketInfo>
      Throws:
      IOException
    • fromJson

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