Class IssueContractBaseProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.models.IssueContractBaseProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IssueContractBaseProperties>
- Direct Known Subclasses:
IssueContractProperties,IssueUpdateContractProperties
public class IssueContractBaseProperties
extends Object
implements com.azure.json.JsonSerializable<IssueContractBaseProperties>
Issue contract Base Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of IssueContractBaseProperties class. -
Method Summary
Modifier and TypeMethodDescriptionapiId()Get the apiId property: A resource identifier for the API the issue was created for.Get the createdDate property: Date and time when the issue was created.static IssueContractBasePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IssueContractBaseProperties from the JsonReader.state()Get the state property: Status of the issue.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the apiId property: A resource identifier for the API the issue was created for.withCreatedDate(OffsetDateTime createdDate) Set the createdDate property: Date and time when the issue was created.Set the state property: Status of the issue.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
-
IssueContractBaseProperties
public IssueContractBaseProperties()Creates an instance of IssueContractBaseProperties class.
-
-
Method Details
-
createdDate
Get the createdDate property: Date and time when the issue was created.- Returns:
- the createdDate value.
-
withCreatedDate
Set the createdDate property: Date and time when the issue was created.- Parameters:
createdDate- the createdDate value to set.- Returns:
- the IssueContractBaseProperties object itself.
-
state
Get the state property: Status of the issue.- Returns:
- the state value.
-
withState
Set the state property: Status of the issue.- Parameters:
state- the state value to set.- Returns:
- the IssueContractBaseProperties object itself.
-
apiId
Get the apiId property: A resource identifier for the API the issue was created for.- Returns:
- the apiId value.
-
withApiId
Set the apiId property: A resource identifier for the API the issue was created for.- Parameters:
apiId- the apiId value to set.- Returns:
- the IssueContractBaseProperties 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<IssueContractBaseProperties>- Throws:
IOException
-
fromJson
public static IssueContractBaseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of IssueContractBaseProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IssueContractBaseProperties 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 IssueContractBaseProperties.
-