com.pulumi.aws.organizations.outputs.GetPoliciesResult 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.organizations.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetPoliciesResult {
private String filter;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return List of all the policy ids found.
*
*/
private List ids;
private GetPoliciesResult() {}
public String filter() {
return this.filter;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return List of all the policy ids found.
*
*/
public List ids() {
return this.ids;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPoliciesResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String filter;
private String id;
private List ids;
public Builder() {}
public Builder(GetPoliciesResult defaults) {
Objects.requireNonNull(defaults);
this.filter = defaults.filter;
this.id = defaults.id;
this.ids = defaults.ids;
}
@CustomType.Setter
public Builder filter(String filter) {
if (filter == null) {
throw new MissingRequiredPropertyException("GetPoliciesResult", "filter");
}
this.filter = filter;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetPoliciesResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetPoliciesResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
public GetPoliciesResult build() {
final var _resultValue = new GetPoliciesResult();
_resultValue.filter = filter;
_resultValue.id = id;
_resultValue.ids = ids;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy