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 Summary
ConstructorsConstructorDescriptionCreates an instance of RoleEligibilityScheduleRequestPropertiesTicketInfo class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleEligibilityScheduleRequestPropertiesTicketInfo from the JsonReader.Get the ticketNumber property: Ticket number for the role eligibility.Get the ticketSystem property: Ticket system name for the role eligibility.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 eligibility.withTicketSystem(String ticketSystem) Set the ticketSystem property: Ticket system name for the role eligibility.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
-
RoleEligibilityScheduleRequestPropertiesTicketInfo
public RoleEligibilityScheduleRequestPropertiesTicketInfo()Creates an instance of RoleEligibilityScheduleRequestPropertiesTicketInfo class.
-
-
Method Details
-
ticketNumber
Get the ticketNumber property: Ticket number for the role eligibility.- Returns:
- the ticketNumber value.
-
withTicketNumber
Set the ticketNumber property: Ticket number for the role eligibility.- Parameters:
ticketNumber- the ticketNumber value to set.- Returns:
- the RoleEligibilityScheduleRequestPropertiesTicketInfo object itself.
-
ticketSystem
Get the ticketSystem property: Ticket system name for the role eligibility.- Returns:
- the ticketSystem value.
-
withTicketSystem
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
- Specified by:
toJsonin interfacecom.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.
-