Class GalleryInVMAccessControlProfileVersionProperties
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryResourceProfileVersionPropertiesBase
com.azure.resourcemanager.compute.fluent.models.GalleryInVMAccessControlProfileVersionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryResourceProfileVersionPropertiesBase>
public final class GalleryInVMAccessControlProfileVersionProperties
extends GalleryResourceProfileVersionPropertiesBase
Describes the properties of an inVMAccessControlProfile version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryInVMAccessControlProfileVersionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultAccess property: This property allows you to specify if the requests will be allowed to access the host endpoints.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryInVMAccessControlProfileVersionProperties from the JsonReader.mode()Get the mode property: This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled.Get the provisioningState property: The provisioning state, which only appears in the response.Get the publishedDate property: The timestamp for when the Resource Profile Version is published.Get the replicationStatus property: This is the replication status of the gallery image version.rules()Get the rules property: This is the Access Control Rules specification for an inVMAccessControlProfile version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDefaultAccess(EndpointAccess defaultAccess) Set the defaultAccess property: This property allows you to specify if the requests will be allowed to access the host endpoints.withExcludeFromLatest(Boolean excludeFromLatest) Set the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version.Set the mode property: This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled.withRules(AccessControlRules rules) Set the rules property: This is the Access Control Rules specification for an inVMAccessControlProfile version.withTargetLocations(List<TargetRegion> targetLocations) Set the targetLocations property: The target regions where the Resource Profile version is going to be replicated to.Methods inherited from class com.azure.resourcemanager.compute.models.GalleryResourceProfileVersionPropertiesBase
excludeFromLatest, targetLocationsMethods 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
-
GalleryInVMAccessControlProfileVersionProperties
public GalleryInVMAccessControlProfileVersionProperties()Creates an instance of GalleryInVMAccessControlProfileVersionProperties class.
-
-
Method Details
-
mode
Get the mode property: This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'.- Returns:
- the mode value.
-
withMode
Set the mode property: This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'.- Parameters:
mode- the mode value to set.- Returns:
- the GalleryInVMAccessControlProfileVersionProperties object itself.
-
defaultAccess
Get the defaultAccess property: This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'.- Returns:
- the defaultAccess value.
-
withDefaultAccess
public GalleryInVMAccessControlProfileVersionProperties withDefaultAccess(EndpointAccess defaultAccess) Set the defaultAccess property: This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'.- Parameters:
defaultAccess- the defaultAccess value to set.- Returns:
- the GalleryInVMAccessControlProfileVersionProperties object itself.
-
rules
Get the rules property: This is the Access Control Rules specification for an inVMAccessControlProfile version.- Returns:
- the rules value.
-
withRules
Set the rules property: This is the Access Control Rules specification for an inVMAccessControlProfile version.- Parameters:
rules- the rules value to set.- Returns:
- the GalleryInVMAccessControlProfileVersionProperties object itself.
-
replicationStatus
Get the replicationStatus property: This is the replication status of the gallery image version.- Overrides:
replicationStatusin classGalleryResourceProfileVersionPropertiesBase- Returns:
- the replicationStatus value.
-
provisioningState
Get the provisioningState property: The provisioning state, which only appears in the response.- Overrides:
provisioningStatein classGalleryResourceProfileVersionPropertiesBase- Returns:
- the provisioningState value.
-
publishedDate
Get the publishedDate property: The timestamp for when the Resource Profile Version is published.- Overrides:
publishedDatein classGalleryResourceProfileVersionPropertiesBase- Returns:
- the publishedDate value.
-
withTargetLocations
public GalleryInVMAccessControlProfileVersionProperties withTargetLocations(List<TargetRegion> targetLocations) Set the targetLocations property: The target regions where the Resource Profile version is going to be replicated to. This property is updatable.- Overrides:
withTargetLocationsin classGalleryResourceProfileVersionPropertiesBase- Parameters:
targetLocations- the targetLocations value to set.- Returns:
- the GalleryResourceProfileVersionPropertiesBase object itself.
-
withExcludeFromLatest
public GalleryInVMAccessControlProfileVersionProperties withExcludeFromLatest(Boolean excludeFromLatest) Set the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version.- Overrides:
withExcludeFromLatestin classGalleryResourceProfileVersionPropertiesBase- Parameters:
excludeFromLatest- the excludeFromLatest value to set.- Returns:
- the GalleryResourceProfileVersionPropertiesBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classGalleryResourceProfileVersionPropertiesBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GalleryResourceProfileVersionPropertiesBase>- Overrides:
toJsonin classGalleryResourceProfileVersionPropertiesBase- Throws:
IOException
-
fromJson
public static GalleryInVMAccessControlProfileVersionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GalleryInVMAccessControlProfileVersionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GalleryInVMAccessControlProfileVersionProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the GalleryInVMAccessControlProfileVersionProperties.
-