Class AccessInformationContractProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.AccessInformationContractProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AccessInformationContractProperties>
public final class AccessInformationContractProperties
extends Object
implements com.azure.json.JsonSerializable<AccessInformationContractProperties>
Tenant access information contract of the API Management service.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AccessInformationContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: Determines whether direct access is enabled.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AccessInformationContractProperties from the JsonReader.id()Get the id property: Access Information type ('access' or 'gitAccess').Get the principalId property: Principal (User) Identifier.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabled(Boolean enabled) Set the enabled property: Determines whether direct access is enabled.Set the id property: Access Information type ('access' or 'gitAccess').withPrincipalId(String principalId) Set the principalId property: Principal (User) Identifier.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
-
AccessInformationContractProperties
public AccessInformationContractProperties()Creates an instance of AccessInformationContractProperties class.
-
-
Method Details
-
id
Get the id property: Access Information type ('access' or 'gitAccess').- Returns:
- the id value.
-
withId
Set the id property: Access Information type ('access' or 'gitAccess').- Parameters:
id- the id value to set.- Returns:
- the AccessInformationContractProperties object itself.
-
principalId
Get the principalId property: Principal (User) Identifier.- Returns:
- the principalId value.
-
withPrincipalId
Set the principalId property: Principal (User) Identifier.- Parameters:
principalId- the principalId value to set.- Returns:
- the AccessInformationContractProperties object itself.
-
enabled
Get the enabled property: Determines whether direct access is enabled.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Determines whether direct access is enabled.- Parameters:
enabled- the enabled value to set.- Returns:
- the AccessInformationContractProperties 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<AccessInformationContractProperties>- Throws:
IOException
-
fromJson
public static AccessInformationContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AccessInformationContractProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AccessInformationContractProperties 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 AccessInformationContractProperties.
-