
com.pulumi.azurenative.dataprotection.outputs.CustomCopyOptionResponse 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.dataprotection.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CustomCopyOptionResponse {
/**
* @return Data copied after given timespan
*
*/
private @Nullable String duration;
/**
* @return Type of the specific object - used for deserializing
* Expected value is 'CustomCopyOption'.
*
*/
private String objectType;
private CustomCopyOptionResponse() {}
/**
* @return Data copied after given timespan
*
*/
public Optional duration() {
return Optional.ofNullable(this.duration);
}
/**
* @return Type of the specific object - used for deserializing
* Expected value is 'CustomCopyOption'.
*
*/
public String objectType() {
return this.objectType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CustomCopyOptionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String duration;
private String objectType;
public Builder() {}
public Builder(CustomCopyOptionResponse defaults) {
Objects.requireNonNull(defaults);
this.duration = defaults.duration;
this.objectType = defaults.objectType;
}
@CustomType.Setter
public Builder duration(@Nullable String duration) {
this.duration = duration;
return this;
}
@CustomType.Setter
public Builder objectType(String objectType) {
if (objectType == null) {
throw new MissingRequiredPropertyException("CustomCopyOptionResponse", "objectType");
}
this.objectType = objectType;
return this;
}
public CustomCopyOptionResponse build() {
final var _resultValue = new CustomCopyOptionResponse();
_resultValue.duration = duration;
_resultValue.objectType = objectType;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy