Class NspAssociationProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.NspAssociationProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NspAssociationProperties>
public final class NspAssociationProperties
extends Object
implements com.azure.json.JsonSerializable<NspAssociationProperties>
The NspAssociationProperties model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NspAssociationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accessMode property: Access mode on the association.static NspAssociationPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NspAssociationProperties from the JsonReader.Get the hasProvisioningIssues property: Specifies if there are provisioning issues.com.azure.core.management.SubResourceGet the privateLinkResource property: The PaaS resource to be associated.com.azure.core.management.SubResourceprofile()Get the profile property: Profile id to which the PaaS resource is associated.Get the provisioningState property: The provisioning state of the resource association resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccessMode(AssociationAccessMode accessMode) Set the accessMode property: Access mode on the association.withPrivateLinkResource(com.azure.core.management.SubResource privateLinkResource) Set the privateLinkResource property: The PaaS resource to be associated.withProfile(com.azure.core.management.SubResource profile) Set the profile property: Profile id to which the PaaS resource is associated.Methods inherited from class 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
-
NspAssociationProperties
public NspAssociationProperties()Creates an instance of NspAssociationProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The provisioning state of the resource association resource.- Returns:
- the provisioningState value.
-
privateLinkResource
public com.azure.core.management.SubResource privateLinkResource()Get the privateLinkResource property: The PaaS resource to be associated.- Returns:
- the privateLinkResource value.
-
withPrivateLinkResource
public NspAssociationProperties withPrivateLinkResource(com.azure.core.management.SubResource privateLinkResource) Set the privateLinkResource property: The PaaS resource to be associated.- Parameters:
privateLinkResource- the privateLinkResource value to set.- Returns:
- the NspAssociationProperties object itself.
-
profile
public com.azure.core.management.SubResource profile()Get the profile property: Profile id to which the PaaS resource is associated.- Returns:
- the profile value.
-
withProfile
Set the profile property: Profile id to which the PaaS resource is associated.- Parameters:
profile- the profile value to set.- Returns:
- the NspAssociationProperties object itself.
-
accessMode
Get the accessMode property: Access mode on the association.- Returns:
- the accessMode value.
-
withAccessMode
Set the accessMode property: Access mode on the association.- Parameters:
accessMode- the accessMode value to set.- Returns:
- the NspAssociationProperties object itself.
-
hasProvisioningIssues
Get the hasProvisioningIssues property: Specifies if there are provisioning issues.- Returns:
- the hasProvisioningIssues value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NspAssociationProperties>- Throws:
IOException
-
fromJson
public static NspAssociationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NspAssociationProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NspAssociationProperties 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 NspAssociationProperties.
-