
com.pulumi.azurenative.containerservice.outputs.GetSnapshotResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.containerservice.outputs;
import com.pulumi.azurenative.containerservice.outputs.CreationDataResponse;
import com.pulumi.azurenative.containerservice.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetSnapshotResult {
/**
* @return CreationData to be used to specify the source agent pool resource ID to create this snapshot.
*
*/
private @Nullable CreationDataResponse creationData;
/**
* @return Whether to use a FIPS-enabled OS.
*
*/
private Boolean enableFIPS;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The version of Kubernetes.
*
*/
private String kubernetesVersion;
/**
* @return The geo-location where the resource lives
*
*/
private String location;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The version of node image.
*
*/
private String nodeImageVersion;
/**
* @return 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.
*
*/
private String osSku;
/**
* @return The operating system type. The default is Linux.
*
*/
private String osType;
/**
* @return The type of a snapshot. The default is NodePool.
*
*/
private @Nullable String snapshotType;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
/**
* @return The size of the VM.
*
*/
private String vmSize;
private GetSnapshotResult() {}
/**
* @return CreationData to be used to specify the source agent pool resource ID to create this snapshot.
*
*/
public Optional creationData() {
return Optional.ofNullable(this.creationData);
}
/**
* @return Whether to use a FIPS-enabled OS.
*
*/
public Boolean enableFIPS() {
return this.enableFIPS;
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return The version of Kubernetes.
*
*/
public String kubernetesVersion() {
return this.kubernetesVersion;
}
/**
* @return The geo-location where the resource lives
*
*/
public String location() {
return this.location;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The version of node image.
*
*/
public String nodeImageVersion() {
return this.nodeImageVersion;
}
/**
* @return 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.
*
*/
public String osSku() {
return this.osSku;
}
/**
* @return The operating system type. The default is Linux.
*
*/
public String osType() {
return this.osType;
}
/**
* @return The type of a snapshot. The default is NodePool.
*
*/
public Optional snapshotType() {
return Optional.ofNullable(this.snapshotType);
}
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
/**
* @return The size of the VM.
*
*/
public String vmSize() {
return this.vmSize;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSnapshotResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable CreationDataResponse creationData;
private Boolean enableFIPS;
private String id;
private String kubernetesVersion;
private String location;
private String name;
private String nodeImageVersion;
private String osSku;
private String osType;
private @Nullable String snapshotType;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private String vmSize;
public Builder() {}
public Builder(GetSnapshotResult defaults) {
Objects.requireNonNull(defaults);
this.creationData = defaults.creationData;
this.enableFIPS = defaults.enableFIPS;
this.id = defaults.id;
this.kubernetesVersion = defaults.kubernetesVersion;
this.location = defaults.location;
this.name = defaults.name;
this.nodeImageVersion = defaults.nodeImageVersion;
this.osSku = defaults.osSku;
this.osType = defaults.osType;
this.snapshotType = defaults.snapshotType;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.vmSize = defaults.vmSize;
}
@CustomType.Setter
public Builder creationData(@Nullable CreationDataResponse creationData) {
this.creationData = creationData;
return this;
}
@CustomType.Setter
public Builder enableFIPS(Boolean enableFIPS) {
if (enableFIPS == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "enableFIPS");
}
this.enableFIPS = enableFIPS;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kubernetesVersion(String kubernetesVersion) {
if (kubernetesVersion == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "kubernetesVersion");
}
this.kubernetesVersion = kubernetesVersion;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder nodeImageVersion(String nodeImageVersion) {
if (nodeImageVersion == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "nodeImageVersion");
}
this.nodeImageVersion = nodeImageVersion;
return this;
}
@CustomType.Setter
public Builder osSku(String osSku) {
if (osSku == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "osSku");
}
this.osSku = osSku;
return this;
}
@CustomType.Setter
public Builder osType(String osType) {
if (osType == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "osType");
}
this.osType = osType;
return this;
}
@CustomType.Setter
public Builder snapshotType(@Nullable String snapshotType) {
this.snapshotType = snapshotType;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder vmSize(String vmSize) {
if (vmSize == null) {
throw new MissingRequiredPropertyException("GetSnapshotResult", "vmSize");
}
this.vmSize = vmSize;
return this;
}
public GetSnapshotResult build() {
final var _resultValue = new GetSnapshotResult();
_resultValue.creationData = creationData;
_resultValue.enableFIPS = enableFIPS;
_resultValue.id = id;
_resultValue.kubernetesVersion = kubernetesVersion;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.nodeImageVersion = nodeImageVersion;
_resultValue.osSku = osSku;
_resultValue.osType = osType;
_resultValue.snapshotType = snapshotType;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.vmSize = vmSize;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy