Extension Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. Extension
- com.
Implements
public final class Extension
implements JsonSerializable<Extension>
Describes a cloud service Extension.
Constructor Summary
Constructor | Description |
---|---|
Extension() |
Creates an instance of Extension class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static Extension |
fromJson(JsonReader jsonReader)
Reads an instance of Extension from the Json |
String |
name()
Get the name property: The name of the extension. |
Cloud |
properties()
Get the properties property: Extension Properties. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Extension |
withName(String name)
Set the name property: The name of the extension. |
Extension |
withProperties(CloudServiceExtensionProperties properties)
Set the properties property: Extension Properties. |
Methods inherited from java.lang.Object
Constructor Details
Extension
public Extension()
Creates an instance of Extension class.
Method Details
fromJson
public static Extension fromJson(JsonReader jsonReader)
Reads an instance of Extension from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the extension.
Returns:
properties
public CloudServiceExtensionProperties properties()
Get the properties property: Extension Properties.
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public Extension withName(String name)
Set the name property: The name of the extension.
Parameters:
Returns:
withProperties
public Extension withProperties(CloudServiceExtensionProperties properties)
Set the properties property: Extension Properties.
Parameters:
Returns:
Applies to
Azure SDK for Java