com.pulumi.aws.iam.outputs.GetPolicyDocumentResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.iam.outputs;
import com.pulumi.aws.iam.outputs.GetPolicyDocumentStatement;
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 GetPolicyDocumentResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Standard JSON policy document rendered based on the arguments above.
*
*/
private String json;
/**
* @return Minified JSON policy document rendered based on the arguments above.
*
*/
private String minifiedJson;
/**
* @deprecated
* Not used
*
*/
@Deprecated /* Not used */
private @Nullable String overrideJson;
private @Nullable List overridePolicyDocuments;
private @Nullable String policyId;
/**
* @deprecated
* Not used
*
*/
@Deprecated /* Not used */
private @Nullable String sourceJson;
private @Nullable List sourcePolicyDocuments;
private @Nullable List statements;
private @Nullable String version;
private GetPolicyDocumentResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Standard JSON policy document rendered based on the arguments above.
*
*/
public String json() {
return this.json;
}
/**
* @return Minified JSON policy document rendered based on the arguments above.
*
*/
public String minifiedJson() {
return this.minifiedJson;
}
/**
* @deprecated
* Not used
*
*/
@Deprecated /* Not used */
public Optional overrideJson() {
return Optional.ofNullable(this.overrideJson);
}
public List overridePolicyDocuments() {
return this.overridePolicyDocuments == null ? List.of() : this.overridePolicyDocuments;
}
public Optional policyId() {
return Optional.ofNullable(this.policyId);
}
/**
* @deprecated
* Not used
*
*/
@Deprecated /* Not used */
public Optional sourceJson() {
return Optional.ofNullable(this.sourceJson);
}
public List sourcePolicyDocuments() {
return this.sourcePolicyDocuments == null ? List.of() : this.sourcePolicyDocuments;
}
public List statements() {
return this.statements == null ? List.of() : this.statements;
}
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPolicyDocumentResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String json;
private String minifiedJson;
private @Nullable String overrideJson;
private @Nullable List overridePolicyDocuments;
private @Nullable String policyId;
private @Nullable String sourceJson;
private @Nullable List sourcePolicyDocuments;
private @Nullable List statements;
private @Nullable String version;
public Builder() {}
public Builder(GetPolicyDocumentResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.json = defaults.json;
this.minifiedJson = defaults.minifiedJson;
this.overrideJson = defaults.overrideJson;
this.overridePolicyDocuments = defaults.overridePolicyDocuments;
this.policyId = defaults.policyId;
this.sourceJson = defaults.sourceJson;
this.sourcePolicyDocuments = defaults.sourcePolicyDocuments;
this.statements = defaults.statements;
this.version = defaults.version;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetPolicyDocumentResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder json(String json) {
if (json == null) {
throw new MissingRequiredPropertyException("GetPolicyDocumentResult", "json");
}
this.json = json;
return this;
}
@CustomType.Setter
public Builder minifiedJson(String minifiedJson) {
if (minifiedJson == null) {
throw new MissingRequiredPropertyException("GetPolicyDocumentResult", "minifiedJson");
}
this.minifiedJson = minifiedJson;
return this;
}
@CustomType.Setter
public Builder overrideJson(@Nullable String overrideJson) {
this.overrideJson = overrideJson;
return this;
}
@CustomType.Setter
public Builder overridePolicyDocuments(@Nullable List overridePolicyDocuments) {
this.overridePolicyDocuments = overridePolicyDocuments;
return this;
}
public Builder overridePolicyDocuments(String... overridePolicyDocuments) {
return overridePolicyDocuments(List.of(overridePolicyDocuments));
}
@CustomType.Setter
public Builder policyId(@Nullable String policyId) {
this.policyId = policyId;
return this;
}
@CustomType.Setter
public Builder sourceJson(@Nullable String sourceJson) {
this.sourceJson = sourceJson;
return this;
}
@CustomType.Setter
public Builder sourcePolicyDocuments(@Nullable List sourcePolicyDocuments) {
this.sourcePolicyDocuments = sourcePolicyDocuments;
return this;
}
public Builder sourcePolicyDocuments(String... sourcePolicyDocuments) {
return sourcePolicyDocuments(List.of(sourcePolicyDocuments));
}
@CustomType.Setter
public Builder statements(@Nullable List statements) {
this.statements = statements;
return this;
}
public Builder statements(GetPolicyDocumentStatement... statements) {
return statements(List.of(statements));
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public GetPolicyDocumentResult build() {
final var _resultValue = new GetPolicyDocumentResult();
_resultValue.id = id;
_resultValue.json = json;
_resultValue.minifiedJson = minifiedJson;
_resultValue.overrideJson = overrideJson;
_resultValue.overridePolicyDocuments = overridePolicyDocuments;
_resultValue.policyId = policyId;
_resultValue.sourceJson = sourceJson;
_resultValue.sourcePolicyDocuments = sourcePolicyDocuments;
_resultValue.statements = statements;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy