Class RoleAssignmentScheduleRequestPropertiesTicketInfo

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

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

    • RoleAssignmentScheduleRequestPropertiesTicketInfo

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

    • ticketNumber

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

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

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

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

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