com.pulumi.aws.rds.inputs.GetReservedInstanceOfferingArgs Maven / Gradle / Ivy
// *** 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.rds.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class GetReservedInstanceOfferingArgs extends com.pulumi.resources.InvokeArgs {
public static final GetReservedInstanceOfferingArgs Empty = new GetReservedInstanceOfferingArgs();
/**
* DB instance class for the reserved DB instance.
*
*/
@Import(name="dbInstanceClass", required=true)
private Output dbInstanceClass;
/**
* @return DB instance class for the reserved DB instance.
*
*/
public Output dbInstanceClass() {
return this.dbInstanceClass;
}
/**
* Duration of the reservation in years or seconds. Valid values are `1`, `3`, `31536000`, `94608000`
*
*/
@Import(name="duration", required=true)
private Output duration;
/**
* @return Duration of the reservation in years or seconds. Valid values are `1`, `3`, `31536000`, `94608000`
*
*/
public Output duration() {
return this.duration;
}
/**
* Whether the reservation applies to Multi-AZ deployments.
*
*/
@Import(name="multiAz", required=true)
private Output multiAz;
/**
* @return Whether the reservation applies to Multi-AZ deployments.
*
*/
public Output multiAz() {
return this.multiAz;
}
/**
* Offering type of this reserved DB instance. Valid values are `No Upfront`, `Partial Upfront`, `All Upfront`.
*
*/
@Import(name="offeringType", required=true)
private Output offeringType;
/**
* @return Offering type of this reserved DB instance. Valid values are `No Upfront`, `Partial Upfront`, `All Upfront`.
*
*/
public Output offeringType() {
return this.offeringType;
}
/**
* Description of the reserved DB instance.
*
*/
@Import(name="productDescription", required=true)
private Output productDescription;
/**
* @return Description of the reserved DB instance.
*
*/
public Output productDescription() {
return this.productDescription;
}
private GetReservedInstanceOfferingArgs() {}
private GetReservedInstanceOfferingArgs(GetReservedInstanceOfferingArgs $) {
this.dbInstanceClass = $.dbInstanceClass;
this.duration = $.duration;
this.multiAz = $.multiAz;
this.offeringType = $.offeringType;
this.productDescription = $.productDescription;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetReservedInstanceOfferingArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetReservedInstanceOfferingArgs $;
public Builder() {
$ = new GetReservedInstanceOfferingArgs();
}
public Builder(GetReservedInstanceOfferingArgs defaults) {
$ = new GetReservedInstanceOfferingArgs(Objects.requireNonNull(defaults));
}
/**
* @param dbInstanceClass DB instance class for the reserved DB instance.
*
* @return builder
*
*/
public Builder dbInstanceClass(Output dbInstanceClass) {
$.dbInstanceClass = dbInstanceClass;
return this;
}
/**
* @param dbInstanceClass DB instance class for the reserved DB instance.
*
* @return builder
*
*/
public Builder dbInstanceClass(String dbInstanceClass) {
return dbInstanceClass(Output.of(dbInstanceClass));
}
/**
* @param duration Duration of the reservation in years or seconds. Valid values are `1`, `3`, `31536000`, `94608000`
*
* @return builder
*
*/
public Builder duration(Output duration) {
$.duration = duration;
return this;
}
/**
* @param duration Duration of the reservation in years or seconds. Valid values are `1`, `3`, `31536000`, `94608000`
*
* @return builder
*
*/
public Builder duration(Integer duration) {
return duration(Output.of(duration));
}
/**
* @param multiAz Whether the reservation applies to Multi-AZ deployments.
*
* @return builder
*
*/
public Builder multiAz(Output multiAz) {
$.multiAz = multiAz;
return this;
}
/**
* @param multiAz Whether the reservation applies to Multi-AZ deployments.
*
* @return builder
*
*/
public Builder multiAz(Boolean multiAz) {
return multiAz(Output.of(multiAz));
}
/**
* @param offeringType Offering type of this reserved DB instance. Valid values are `No Upfront`, `Partial Upfront`, `All Upfront`.
*
* @return builder
*
*/
public Builder offeringType(Output offeringType) {
$.offeringType = offeringType;
return this;
}
/**
* @param offeringType Offering type of this reserved DB instance. Valid values are `No Upfront`, `Partial Upfront`, `All Upfront`.
*
* @return builder
*
*/
public Builder offeringType(String offeringType) {
return offeringType(Output.of(offeringType));
}
/**
* @param productDescription Description of the reserved DB instance.
*
* @return builder
*
*/
public Builder productDescription(Output productDescription) {
$.productDescription = productDescription;
return this;
}
/**
* @param productDescription Description of the reserved DB instance.
*
* @return builder
*
*/
public Builder productDescription(String productDescription) {
return productDescription(Output.of(productDescription));
}
public GetReservedInstanceOfferingArgs build() {
if ($.dbInstanceClass == null) {
throw new MissingRequiredPropertyException("GetReservedInstanceOfferingArgs", "dbInstanceClass");
}
if ($.duration == null) {
throw new MissingRequiredPropertyException("GetReservedInstanceOfferingArgs", "duration");
}
if ($.multiAz == null) {
throw new MissingRequiredPropertyException("GetReservedInstanceOfferingArgs", "multiAz");
}
if ($.offeringType == null) {
throw new MissingRequiredPropertyException("GetReservedInstanceOfferingArgs", "offeringType");
}
if ($.productDescription == null) {
throw new MissingRequiredPropertyException("GetReservedInstanceOfferingArgs", "productDescription");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy