SnapshotInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. containerservice. fluent. models. SnapshotInner
- com.
- com.
- com.
public final class SnapshotInner
extends Resource
A node pool snapshot resource.
Constructor Summary
Constructor | Description |
---|---|
SnapshotInner() |
Creates an instance of Snapshot |
Method Summary
Modifier and Type | Method and Description |
---|---|
Creation |
creationData()
Get the creation |
Boolean |
enableFips()
Get the enable |
static
Snapshot |
fromJson(JsonReader jsonReader)
Reads an instance of Snapshot |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
kubernetesVersion()
Get the kubernetes |
String |
name()
Get the name property: The name of the resource. |
String |
nodeImageVersion()
Get the node |
OSSku |
osSku()
Get the os |
OSType |
osType()
Get the os |
Snapshot |
snapshotType()
Get the snapshot |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
String |
vmSize()
Get the vm |
Snapshot |
withCreationData(CreationData creationData)
Set the creation |
Snapshot |
withLocation(String location) |
Snapshot |
withSnapshotType(SnapshotType snapshotType)
Set the snapshot |
Snapshot |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
SnapshotInner
public SnapshotInner()
Creates an instance of SnapshotInner class.
Method Details
creationData
public CreationData creationData()
Get the creationData property: CreationData to be used to specify the source agent pool resource ID to create this snapshot.
Returns:
enableFips
public Boolean enableFips()
Get the enableFips property: Whether to use a FIPS-enabled OS.
Returns:
fromJson
public static SnapshotInner fromJson(JsonReader jsonReader)
Reads an instance of SnapshotInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SnapshotInner.id()Returns:
kubernetesVersion
public String kubernetesVersion()
Get the kubernetesVersion property: The version of Kubernetes.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SnapshotInner.name()Returns:
nodeImageVersion
public String nodeImageVersion()
Get the nodeImageVersion property: The version of node image.
Returns:
osSku
public OSSku osSku()
Get the osSku property: Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows.
Returns:
osType
public OSType osType()
Get the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.
Returns:
snapshotType
public SnapshotType snapshotType()
Get the snapshotType property: The type of a snapshot. The default is NodePool.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SnapshotInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SnapshotInner.type()Returns:
validate
public void validate()
Validates the instance.
vmSize
public String vmSize()
Get the vmSize property: The size of the VM.
Returns:
withCreationData
public SnapshotInner withCreationData(CreationData creationData)
Set the creationData property: CreationData to be used to specify the source agent pool resource ID to create this snapshot.
Parameters:
Returns:
withLocation
public SnapshotInner withLocation(String location)
Overrides:
SnapshotInner.withLocation(String location)Parameters:
withSnapshotType
public SnapshotInner withSnapshotType(SnapshotType snapshotType)
Set the snapshotType property: The type of a snapshot. The default is NodePool.
Parameters:
Returns:
withTags
public SnapshotInner withTags(Map
Overrides:
SnapshotInner.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java