Partilhar via


GalleryInVMAccessControlProfileProperties Class

public final class GalleryInVMAccessControlProfileProperties
extends GalleryResourceProfilePropertiesBase

Describes the properties of a gallery inVMAccessControlProfile.

Constructor Summary

Constructor Description
GalleryInVMAccessControlProfileProperties()

Creates an instance of GalleryInVMAccessControlProfileProperties class.

Method Summary

Modifier and Type Method and Description
EndpointTypes applicableHostEndpoint()

Get the applicableHostEndpoint property: This property allows you to specify the Endpoint type for which this profile is defining the access control for.

String description()

Get the description property: The description of this gallery inVMAccessControlProfile resources.

static GalleryInVMAccessControlProfileProperties fromJson(JsonReader jsonReader)

Reads an instance of GalleryInVMAccessControlProfileProperties from the JsonReader.

OperatingSystemTypes osType()

Get the osType property: This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against.

GalleryProvisioningState provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryInVMAccessControlProfileProperties withApplicableHostEndpoint(EndpointTypes applicableHostEndpoint)

Set the applicableHostEndpoint property: This property allows you to specify the Endpoint type for which this profile is defining the access control for.

GalleryInVMAccessControlProfileProperties withDescription(String description)

Set the description property: The description of this gallery inVMAccessControlProfile resources.

GalleryInVMAccessControlProfileProperties withOsType(OperatingSystemTypes osType)

Set the osType property: This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against.

Methods inherited from GalleryResourceProfilePropertiesBase

Methods inherited from java.lang.Object

Constructor Details

GalleryInVMAccessControlProfileProperties

public GalleryInVMAccessControlProfileProperties()

Creates an instance of GalleryInVMAccessControlProfileProperties class.

Method Details

applicableHostEndpoint

public EndpointTypes applicableHostEndpoint()

Get the applicableHostEndpoint property: This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'.

Returns:

the applicableHostEndpoint value.

description

public String description()

Get the description property: The description of this gallery inVMAccessControlProfile resources. This property is updatable.

Returns:

the description value.

fromJson

public static GalleryInVMAccessControlProfileProperties fromJson(JsonReader jsonReader)

Reads an instance of GalleryInVMAccessControlProfileProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GalleryInVMAccessControlProfileProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

osType

public OperatingSystemTypes osType()

Get the osType property: This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'.

Returns:

the osType value.

provisioningState

public GalleryProvisioningState provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

Overrides:

GalleryInVMAccessControlProfileProperties.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GalleryInVMAccessControlProfileProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

GalleryInVMAccessControlProfileProperties.validate()

withApplicableHostEndpoint

public GalleryInVMAccessControlProfileProperties withApplicableHostEndpoint(EndpointTypes applicableHostEndpoint)

Set the applicableHostEndpoint property: This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'.

Parameters:

applicableHostEndpoint - the applicableHostEndpoint value to set.

Returns:

the GalleryInVMAccessControlProfileProperties object itself.

withDescription

public GalleryInVMAccessControlProfileProperties withDescription(String description)

Set the description property: The description of this gallery inVMAccessControlProfile resources. This property is updatable.

Parameters:

description - the description value to set.

Returns:

the GalleryInVMAccessControlProfileProperties object itself.

withOsType

public GalleryInVMAccessControlProfileProperties withOsType(OperatingSystemTypes osType)

Set the osType property: This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'.

Parameters:

osType - the osType value to set.

Returns:

the GalleryInVMAccessControlProfileProperties object itself.

Applies to