Share via


GalleryScriptVersionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.GalleryScriptVersionProperties

Implements

public final class GalleryScriptVersionProperties
implements JsonSerializable<GalleryScriptVersionProperties>

Describes the properties of a gallery script version.

Constructor Summary

Constructor Description
GalleryScriptVersionProperties()

Creates an instance of GalleryScriptVersionProperties class.

Method Summary

Modifier and Type Method and Description
static GalleryScriptVersionProperties fromJson(JsonReader jsonReader)

Reads an instance of GalleryScriptVersionProperties from the JsonReader.

GalleryProvisioningState provisioningState()

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

GalleryScriptVersionPublishingProfile publishingProfile()

Get the publishingProfile property: The publishing profile of a gallery image version.

ReplicationStatus replicationStatus()

Get the replicationStatus property: This is the replication status of the gallery image version.

GalleryScriptVersionSafetyProfile safetyProfile()

Get the safetyProfile property: The safety profile of the Gallery Script Version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryScriptVersionProperties withPublishingProfile(GalleryScriptVersionPublishingProfile publishingProfile)

Set the publishingProfile property: The publishing profile of a gallery image version.

GalleryScriptVersionProperties withSafetyProfile(GalleryScriptVersionSafetyProfile safetyProfile)

Set the safetyProfile property: The safety profile of the Gallery Script Version.

Methods inherited from java.lang.Object

Constructor Details

GalleryScriptVersionProperties

public GalleryScriptVersionProperties()

Creates an instance of GalleryScriptVersionProperties class.

Method Details

fromJson

public static GalleryScriptVersionProperties fromJson(JsonReader jsonReader)

Reads an instance of GalleryScriptVersionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GalleryScriptVersionProperties 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.

provisioningState

public GalleryProvisioningState provisioningState()

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

Returns:

the provisioningState value.

publishingProfile

public GalleryScriptVersionPublishingProfile publishingProfile()

Get the publishingProfile property: The publishing profile of a gallery image version.

Returns:

the publishingProfile value.

replicationStatus

public ReplicationStatus replicationStatus()

Get the replicationStatus property: This is the replication status of the gallery image version.

Returns:

the replicationStatus value.

safetyProfile

public GalleryScriptVersionSafetyProfile safetyProfile()

Get the safetyProfile property: The safety profile of the Gallery Script Version.

Returns:

the safetyProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPublishingProfile

public GalleryScriptVersionProperties withPublishingProfile(GalleryScriptVersionPublishingProfile publishingProfile)

Set the publishingProfile property: The publishing profile of a gallery image version.

Parameters:

publishingProfile - the publishingProfile value to set.

Returns:

the GalleryScriptVersionProperties object itself.

withSafetyProfile

public GalleryScriptVersionProperties withSafetyProfile(GalleryScriptVersionSafetyProfile safetyProfile)

Set the safetyProfile property: The safety profile of the Gallery Script Version.

Parameters:

safetyProfile - the safetyProfile value to set.

Returns:

the GalleryScriptVersionProperties object itself.

Applies to