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 Summary
ConstructorsConstructorDescriptionCreates an instance of RoleAssignmentScheduleRequestPropertiesTicketInfo class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleAssignmentScheduleRequestPropertiesTicketInfo from the JsonReader.Get the ticketNumber property: Ticket number for the role assignment.Get the ticketSystem property: Ticket system name for the role assignment.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withTicketNumber(String ticketNumber) Set the ticketNumber property: Ticket number for the role assignment.withTicketSystem(String ticketSystem) Set the ticketSystem property: Ticket system name for the role assignment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RoleAssignmentScheduleRequestPropertiesTicketInfo
public RoleAssignmentScheduleRequestPropertiesTicketInfo()Creates an instance of RoleAssignmentScheduleRequestPropertiesTicketInfo class.
-
-
Method Details
-
ticketNumber
Get the ticketNumber property: Ticket number for the role assignment.- Returns:
- the ticketNumber value.
-
withTicketNumber
Set the ticketNumber property: Ticket number for the role assignment.- Parameters:
ticketNumber- the ticketNumber value to set.- Returns:
- the RoleAssignmentScheduleRequestPropertiesTicketInfo object itself.
-
ticketSystem
Get the ticketSystem property: Ticket system name for the role assignment.- Returns:
- the ticketSystem value.
-
withTicketSystem
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
- Specified by:
toJsonin interfacecom.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.
-