
com.pulumi.azurenative.dataprotection.outputs.PolicyInfoResponse 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.azurenative.dataprotection.outputs.PolicyParametersResponse;
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 PolicyInfoResponse {
private String policyId;
/**
* @return Policy parameters for the backup instance
*
*/
private @Nullable PolicyParametersResponse policyParameters;
private String policyVersion;
private PolicyInfoResponse() {}
public String policyId() {
return this.policyId;
}
/**
* @return Policy parameters for the backup instance
*
*/
public Optional policyParameters() {
return Optional.ofNullable(this.policyParameters);
}
public String policyVersion() {
return this.policyVersion;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PolicyInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String policyId;
private @Nullable PolicyParametersResponse policyParameters;
private String policyVersion;
public Builder() {}
public Builder(PolicyInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.policyId = defaults.policyId;
this.policyParameters = defaults.policyParameters;
this.policyVersion = defaults.policyVersion;
}
@CustomType.Setter
public Builder policyId(String policyId) {
if (policyId == null) {
throw new MissingRequiredPropertyException("PolicyInfoResponse", "policyId");
}
this.policyId = policyId;
return this;
}
@CustomType.Setter
public Builder policyParameters(@Nullable PolicyParametersResponse policyParameters) {
this.policyParameters = policyParameters;
return this;
}
@CustomType.Setter
public Builder policyVersion(String policyVersion) {
if (policyVersion == null) {
throw new MissingRequiredPropertyException("PolicyInfoResponse", "policyVersion");
}
this.policyVersion = policyVersion;
return this;
}
public PolicyInfoResponse build() {
final var _resultValue = new PolicyInfoResponse();
_resultValue.policyId = policyId;
_resultValue.policyParameters = policyParameters;
_resultValue.policyVersion = policyVersion;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy