Partager via


GalleryApplicationCustomAction Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.GalleryApplicationCustomAction

Implements

public final class GalleryApplicationCustomAction
implements JsonSerializable<GalleryApplicationCustomAction>

A custom action that can be performed with a Gallery Application Version.

Constructor Summary

Constructor Description
GalleryApplicationCustomAction()

Creates an instance of GalleryApplicationCustomAction class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description to help the users understand what this custom action does.

static GalleryApplicationCustomAction fromJson(JsonReader jsonReader)

Reads an instance of GalleryApplicationCustomAction from the JsonReader.

String name()

Get the name property: The name of the custom action.

List<GalleryApplicationCustomActionParameter> parameters()

Get the parameters property: The parameters that this custom action uses.

String script()

Get the script property: The script to run when executing this custom action.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryApplicationCustomAction withDescription(String description)

Set the description property: Description to help the users understand what this custom action does.

GalleryApplicationCustomAction withName(String name)

Set the name property: The name of the custom action.

GalleryApplicationCustomAction withParameters(List<GalleryApplicationCustomActionParameter> parameters)

Set the parameters property: The parameters that this custom action uses.

GalleryApplicationCustomAction withScript(String script)

Set the script property: The script to run when executing this custom action.

Methods inherited from java.lang.Object

Constructor Details

GalleryApplicationCustomAction

public GalleryApplicationCustomAction()

Creates an instance of GalleryApplicationCustomAction class.

Method Details

description

public String description()

Get the description property: Description to help the users understand what this custom action does.

Returns:

the description value.

fromJson

public static GalleryApplicationCustomAction fromJson(JsonReader jsonReader)

Reads an instance of GalleryApplicationCustomAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the custom action. Must be unique within the Gallery Application Version.

Returns:

the name value.

parameters

public List parameters()

Get the parameters property: The parameters that this custom action uses.

Returns:

the parameters value.

script

public String script()

Get the script property: The script to run when executing this custom action.

Returns:

the script value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public GalleryApplicationCustomAction withDescription(String description)

Set the description property: Description to help the users understand what this custom action does.

Parameters:

description - the description value to set.

Returns:

the GalleryApplicationCustomAction object itself.

withName

public GalleryApplicationCustomAction withName(String name)

Set the name property: The name of the custom action. Must be unique within the Gallery Application Version.

Parameters:

name - the name value to set.

Returns:

the GalleryApplicationCustomAction object itself.

withParameters

public GalleryApplicationCustomAction withParameters(List parameters)

Set the parameters property: The parameters that this custom action uses.

Parameters:

parameters - the parameters value to set.

Returns:

the GalleryApplicationCustomAction object itself.

withScript

public GalleryApplicationCustomAction withScript(String script)

Set the script property: The script to run when executing this custom action.

Parameters:

script - the script value to set.

Returns:

the GalleryApplicationCustomAction object itself.

Applies to