
com.pulumi.azurenative.compute.outputs.GetRestorePointResult 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.compute.outputs;
import com.pulumi.azurenative.compute.outputs.ApiEntityReferenceResponse;
import com.pulumi.azurenative.compute.outputs.RestorePointInstanceViewResponse;
import com.pulumi.azurenative.compute.outputs.RestorePointSourceMetadataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetRestorePointResult {
/**
* @return ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
*
*/
private @Nullable String consistencyMode;
/**
* @return List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
*
*/
private @Nullable List excludeDisks;
/**
* @return Resource Id
*
*/
private String id;
/**
* @return The restore point instance view.
*
*/
private RestorePointInstanceViewResponse instanceView;
/**
* @return Resource name
*
*/
private String name;
/**
* @return Gets the provisioning state of the restore point.
*
*/
private String provisioningState;
/**
* @return Gets the details of the VM captured at the time of the restore point creation.
*
*/
private @Nullable RestorePointSourceMetadataResponse sourceMetadata;
/**
* @return Resource Id of the source restore point from which a copy needs to be created.
*
*/
private @Nullable ApiEntityReferenceResponse sourceRestorePoint;
/**
* @return Gets the creation time of the restore point.
*
*/
private @Nullable String timeCreated;
/**
* @return Resource type
*
*/
private String type;
private GetRestorePointResult() {}
/**
* @return ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
*
*/
public Optional consistencyMode() {
return Optional.ofNullable(this.consistencyMode);
}
/**
* @return List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
*
*/
public List excludeDisks() {
return this.excludeDisks == null ? List.of() : this.excludeDisks;
}
/**
* @return Resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return The restore point instance view.
*
*/
public RestorePointInstanceViewResponse instanceView() {
return this.instanceView;
}
/**
* @return Resource name
*
*/
public String name() {
return this.name;
}
/**
* @return Gets the provisioning state of the restore point.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Gets the details of the VM captured at the time of the restore point creation.
*
*/
public Optional sourceMetadata() {
return Optional.ofNullable(this.sourceMetadata);
}
/**
* @return Resource Id of the source restore point from which a copy needs to be created.
*
*/
public Optional sourceRestorePoint() {
return Optional.ofNullable(this.sourceRestorePoint);
}
/**
* @return Gets the creation time of the restore point.
*
*/
public Optional timeCreated() {
return Optional.ofNullable(this.timeCreated);
}
/**
* @return Resource type
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRestorePointResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String consistencyMode;
private @Nullable List excludeDisks;
private String id;
private RestorePointInstanceViewResponse instanceView;
private String name;
private String provisioningState;
private @Nullable RestorePointSourceMetadataResponse sourceMetadata;
private @Nullable ApiEntityReferenceResponse sourceRestorePoint;
private @Nullable String timeCreated;
private String type;
public Builder() {}
public Builder(GetRestorePointResult defaults) {
Objects.requireNonNull(defaults);
this.consistencyMode = defaults.consistencyMode;
this.excludeDisks = defaults.excludeDisks;
this.id = defaults.id;
this.instanceView = defaults.instanceView;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.sourceMetadata = defaults.sourceMetadata;
this.sourceRestorePoint = defaults.sourceRestorePoint;
this.timeCreated = defaults.timeCreated;
this.type = defaults.type;
}
@CustomType.Setter
public Builder consistencyMode(@Nullable String consistencyMode) {
this.consistencyMode = consistencyMode;
return this;
}
@CustomType.Setter
public Builder excludeDisks(@Nullable List excludeDisks) {
this.excludeDisks = excludeDisks;
return this;
}
public Builder excludeDisks(ApiEntityReferenceResponse... excludeDisks) {
return excludeDisks(List.of(excludeDisks));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetRestorePointResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder instanceView(RestorePointInstanceViewResponse instanceView) {
if (instanceView == null) {
throw new MissingRequiredPropertyException("GetRestorePointResult", "instanceView");
}
this.instanceView = instanceView;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetRestorePointResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetRestorePointResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder sourceMetadata(@Nullable RestorePointSourceMetadataResponse sourceMetadata) {
this.sourceMetadata = sourceMetadata;
return this;
}
@CustomType.Setter
public Builder sourceRestorePoint(@Nullable ApiEntityReferenceResponse sourceRestorePoint) {
this.sourceRestorePoint = sourceRestorePoint;
return this;
}
@CustomType.Setter
public Builder timeCreated(@Nullable String timeCreated) {
this.timeCreated = timeCreated;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetRestorePointResult", "type");
}
this.type = type;
return this;
}
public GetRestorePointResult build() {
final var _resultValue = new GetRestorePointResult();
_resultValue.consistencyMode = consistencyMode;
_resultValue.excludeDisks = excludeDisks;
_resultValue.id = id;
_resultValue.instanceView = instanceView;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.sourceMetadata = sourceMetadata;
_resultValue.sourceRestorePoint = sourceRestorePoint;
_resultValue.timeCreated = timeCreated;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy