Share via


GalleryScriptProperties Class

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

Implements

public final class GalleryScriptProperties
implements JsonSerializable<GalleryScriptProperties>

Describes the properties of a gallery script definition.

Constructor Summary

Constructor Description
GalleryScriptProperties()

Creates an instance of GalleryScriptProperties class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The description of this gallery script definition resource.

OffsetDateTime endOfLifeDate()

Get the endOfLifeDate property: The end of life date of the gallery Script Definition.

String eula()

Get the eula property: The Eula agreement (End User License Agreement) for the gallery Script Definition.

static GalleryScriptProperties fromJson(JsonReader jsonReader)

Reads an instance of GalleryScriptProperties from the JsonReader.

String privacyStatementUri()

Get the privacyStatementUri property: The privacy statement uri.

GalleryProvisioningState provisioningState()

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

String releaseNoteUri()

Get the releaseNoteUri property: The release note uri.

OperatingSystemTypes supportedOSType()

Get the supportedOSType property: This property allows you to specify the supported type of the OS that application is built for.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryScriptProperties withDescription(String description)

Set the description property: The description of this gallery script definition resource.

GalleryScriptProperties withEndOfLifeDate(OffsetDateTime endOfLifeDate)

Set the endOfLifeDate property: The end of life date of the gallery Script Definition.

GalleryScriptProperties withEula(String eula)

Set the eula property: The Eula agreement (End User License Agreement) for the gallery Script Definition.

GalleryScriptProperties withPrivacyStatementUri(String privacyStatementUri)

Set the privacyStatementUri property: The privacy statement uri.

GalleryScriptProperties withReleaseNoteUri(String releaseNoteUri)

Set the releaseNoteUri property: The release note uri.

GalleryScriptProperties withSupportedOSType(OperatingSystemTypes supportedOSType)

Set the supportedOSType property: This property allows you to specify the supported type of the OS that application is built for.

Methods inherited from java.lang.Object

Constructor Details

GalleryScriptProperties

public GalleryScriptProperties()

Creates an instance of GalleryScriptProperties class.

Method Details

description

public String description()

Get the description property: The description of this gallery script definition resource. This property is updatable.

Returns:

the description value.

endOfLifeDate

public OffsetDateTime endOfLifeDate()

Get the endOfLifeDate property: The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.

Returns:

the endOfLifeDate value.

eula

public String eula()

Get the eula property: The Eula agreement (End User License Agreement) for the gallery Script Definition.

Returns:

the eula value.

fromJson

public static GalleryScriptProperties fromJson(JsonReader jsonReader)

Reads an instance of GalleryScriptProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

privacyStatementUri

public String privacyStatementUri()

Get the privacyStatementUri property: The privacy statement uri.

Returns:

the privacyStatementUri value.

provisioningState

public GalleryProvisioningState provisioningState()

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

Returns:

the provisioningState value.

releaseNoteUri

public String releaseNoteUri()

Get the releaseNoteUri property: The release note uri.

Returns:

the releaseNoteUri value.

supportedOSType

public OperatingSystemTypes supportedOSType()

Get the supportedOSType property: This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**.

Returns:

the supportedOSType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public GalleryScriptProperties withDescription(String description)

Set the description property: The description of this gallery script definition resource. This property is updatable.

Parameters:

description - the description value to set.

Returns:

the GalleryScriptProperties object itself.

withEndOfLifeDate

public GalleryScriptProperties withEndOfLifeDate(OffsetDateTime endOfLifeDate)

Set the endOfLifeDate property: The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.

Parameters:

endOfLifeDate - the endOfLifeDate value to set.

Returns:

the GalleryScriptProperties object itself.

withEula

public GalleryScriptProperties withEula(String eula)

Set the eula property: The Eula agreement (End User License Agreement) for the gallery Script Definition.

Parameters:

eula - the eula value to set.

Returns:

the GalleryScriptProperties object itself.

withPrivacyStatementUri

public GalleryScriptProperties withPrivacyStatementUri(String privacyStatementUri)

Set the privacyStatementUri property: The privacy statement uri.

Parameters:

privacyStatementUri - the privacyStatementUri value to set.

Returns:

the GalleryScriptProperties object itself.

withReleaseNoteUri

public GalleryScriptProperties withReleaseNoteUri(String releaseNoteUri)

Set the releaseNoteUri property: The release note uri.

Parameters:

releaseNoteUri - the releaseNoteUri value to set.

Returns:

the GalleryScriptProperties object itself.

withSupportedOSType

public GalleryScriptProperties withSupportedOSType(OperatingSystemTypes supportedOSType)

Set the supportedOSType property: This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**.

Parameters:

supportedOSType - the supportedOSType value to set.

Returns:

the GalleryScriptProperties object itself.

Applies to