com.pulumi.alicloud.sae.outputs.GetApplicationScalingRulesResult 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.sae.outputs;
import com.pulumi.alicloud.sae.outputs.GetApplicationScalingRulesRule;
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 GetApplicationScalingRulesResult {
private String appId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private List ids;
private @Nullable String outputFile;
private List rules;
private GetApplicationScalingRulesResult() {}
public String appId() {
return this.appId;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public List ids() {
return this.ids;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
public List rules() {
return this.rules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetApplicationScalingRulesResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String appId;
private String id;
private List ids;
private @Nullable String outputFile;
private List rules;
public Builder() {}
public Builder(GetApplicationScalingRulesResult defaults) {
Objects.requireNonNull(defaults);
this.appId = defaults.appId;
this.id = defaults.id;
this.ids = defaults.ids;
this.outputFile = defaults.outputFile;
this.rules = defaults.rules;
}
@CustomType.Setter
public Builder appId(String appId) {
if (appId == null) {
throw new MissingRequiredPropertyException("GetApplicationScalingRulesResult", "appId");
}
this.appId = appId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetApplicationScalingRulesResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetApplicationScalingRulesResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder outputFile(@Nullable String outputFile) {
this.outputFile = outputFile;
return this;
}
@CustomType.Setter
public Builder rules(List rules) {
if (rules == null) {
throw new MissingRequiredPropertyException("GetApplicationScalingRulesResult", "rules");
}
this.rules = rules;
return this;
}
public Builder rules(GetApplicationScalingRulesRule... rules) {
return rules(List.of(rules));
}
public GetApplicationScalingRulesResult build() {
final var _resultValue = new GetApplicationScalingRulesResult();
_resultValue.appId = appId;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.outputFile = outputFile;
_resultValue.rules = rules;
return _resultValue;
}
}
}