com.pulumi.alicloud.cr.outputs.GetChainsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.cr.outputs;
import com.pulumi.alicloud.cr.outputs.GetChainsChain;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetChainsResult {
/**
* @return A list of Cr Chains. Each element contains the following attributes:
*
*/
private List chains;
private @Nullable Boolean enableDetails;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return A list of Chain IDs.
*
*/
private List ids;
/**
* @return The ID of CR Enterprise Edition instance.
*
*/
private String instanceId;
private @Nullable String nameRegex;
/**
* @return A list of Chain names.
*
*/
private List names;
private @Nullable String outputFile;
private @Nullable String repoName;
private @Nullable String repoNamespaceName;
private GetChainsResult() {}
/**
* @return A list of Cr Chains. Each element contains the following attributes:
*
*/
public List chains() {
return this.chains;
}
public Optional enableDetails() {
return Optional.ofNullable(this.enableDetails);
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return A list of Chain IDs.
*
*/
public List ids() {
return this.ids;
}
/**
* @return The ID of CR Enterprise Edition instance.
*
*/
public String instanceId() {
return this.instanceId;
}
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
/**
* @return A list of Chain names.
*
*/
public List names() {
return this.names;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
public Optional repoName() {
return Optional.ofNullable(this.repoName);
}
public Optional repoNamespaceName() {
return Optional.ofNullable(this.repoNamespaceName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetChainsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List chains;
private @Nullable Boolean enableDetails;
private String id;
private List ids;
private String instanceId;
private @Nullable String nameRegex;
private List names;
private @Nullable String outputFile;
private @Nullable String repoName;
private @Nullable String repoNamespaceName;
public Builder() {}
public Builder(GetChainsResult defaults) {
Objects.requireNonNull(defaults);
this.chains = defaults.chains;
this.enableDetails = defaults.enableDetails;
this.id = defaults.id;
this.ids = defaults.ids;
this.instanceId = defaults.instanceId;
this.nameRegex = defaults.nameRegex;
this.names = defaults.names;
this.outputFile = defaults.outputFile;
this.repoName = defaults.repoName;
this.repoNamespaceName = defaults.repoNamespaceName;
}
@CustomType.Setter
public Builder chains(List chains) {
if (chains == null) {
throw new MissingRequiredPropertyException("GetChainsResult", "chains");
}
this.chains = chains;
return this;
}
public Builder chains(GetChainsChain... chains) {
return chains(List.of(chains));
}
@CustomType.Setter
public Builder enableDetails(@Nullable Boolean enableDetails) {
this.enableDetails = enableDetails;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetChainsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetChainsResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder instanceId(String instanceId) {
if (instanceId == null) {
throw new MissingRequiredPropertyException("GetChainsResult", "instanceId");
}
this.instanceId = instanceId;
return this;
}
@CustomType.Setter
public Builder nameRegex(@Nullable String nameRegex) {
this.nameRegex = nameRegex;
return this;
}
@CustomType.Setter
public Builder names(List names) {
if (names == null) {
throw new MissingRequiredPropertyException("GetChainsResult", "names");
}
this.names = names;
return this;
}
public Builder names(String... names) {
return names(List.of(names));
}
@CustomType.Setter
public Builder outputFile(@Nullable String outputFile) {
this.outputFile = outputFile;
return this;
}
@CustomType.Setter
public Builder repoName(@Nullable String repoName) {
this.repoName = repoName;
return this;
}
@CustomType.Setter
public Builder repoNamespaceName(@Nullable String repoNamespaceName) {
this.repoNamespaceName = repoNamespaceName;
return this;
}
public GetChainsResult build() {
final var _resultValue = new GetChainsResult();
_resultValue.chains = chains;
_resultValue.enableDetails = enableDetails;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.instanceId = instanceId;
_resultValue.nameRegex = nameRegex;
_resultValue.names = names;
_resultValue.outputFile = outputFile;
_resultValue.repoName = repoName;
_resultValue.repoNamespaceName = repoNamespaceName;
return _resultValue;
}
}
}