com.pulumi.aws.verifiedpermissions.outputs.PolicyDefinitionStatic 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.verifiedpermissions.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 PolicyDefinitionStatic {
/**
* @return The description of the static policy.
*
*/
private @Nullable String description;
/**
* @return The statement of the static policy.
*
*/
private String statement;
private PolicyDefinitionStatic() {}
/**
* @return The description of the static policy.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The statement of the static policy.
*
*/
public String statement() {
return this.statement;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PolicyDefinitionStatic defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String description;
private String statement;
public Builder() {}
public Builder(PolicyDefinitionStatic defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.statement = defaults.statement;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder statement(String statement) {
if (statement == null) {
throw new MissingRequiredPropertyException("PolicyDefinitionStatic", "statement");
}
this.statement = statement;
return this;
}
public PolicyDefinitionStatic build() {
final var _resultValue = new PolicyDefinitionStatic();
_resultValue.description = description;
_resultValue.statement = statement;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy