com.pulumi.alicloud.quotas.outputs.TemplateApplicationsQuotaApplicationDetailPeriod 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.quotas.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TemplateApplicationsQuotaApplicationDetailPeriod {
/**
* @return Quota calculation cycle unit.
*
*/
private @Nullable String periodUnit;
/**
* @return The quota calculation period value.
*
*/
private @Nullable Integer periodValue;
private TemplateApplicationsQuotaApplicationDetailPeriod() {}
/**
* @return Quota calculation cycle unit.
*
*/
public Optional periodUnit() {
return Optional.ofNullable(this.periodUnit);
}
/**
* @return The quota calculation period value.
*
*/
public Optional periodValue() {
return Optional.ofNullable(this.periodValue);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TemplateApplicationsQuotaApplicationDetailPeriod defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String periodUnit;
private @Nullable Integer periodValue;
public Builder() {}
public Builder(TemplateApplicationsQuotaApplicationDetailPeriod defaults) {
Objects.requireNonNull(defaults);
this.periodUnit = defaults.periodUnit;
this.periodValue = defaults.periodValue;
}
@CustomType.Setter
public Builder periodUnit(@Nullable String periodUnit) {
this.periodUnit = periodUnit;
return this;
}
@CustomType.Setter
public Builder periodValue(@Nullable Integer periodValue) {
this.periodValue = periodValue;
return this;
}
public TemplateApplicationsQuotaApplicationDetailPeriod build() {
final var _resultValue = new TemplateApplicationsQuotaApplicationDetailPeriod();
_resultValue.periodUnit = periodUnit;
_resultValue.periodValue = periodValue;
return _resultValue;
}
}
}