
com.pulumi.azurenative.cloudngfw.outputs.PlanDataResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.cloudngfw.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PlanDataResponse {
/**
* @return different billing cycles like MONTHLY/WEEKLY
*
*/
private String billingCycle;
/**
* @return date when plan was applied
*
*/
private String effectiveDate;
/**
* @return plan id as published by Liftr.PAN
*
*/
private String planId;
/**
* @return different usage type like PAYG/COMMITTED
*
*/
private @Nullable String usageType;
private PlanDataResponse() {}
/**
* @return different billing cycles like MONTHLY/WEEKLY
*
*/
public String billingCycle() {
return this.billingCycle;
}
/**
* @return date when plan was applied
*
*/
public String effectiveDate() {
return this.effectiveDate;
}
/**
* @return plan id as published by Liftr.PAN
*
*/
public String planId() {
return this.planId;
}
/**
* @return different usage type like PAYG/COMMITTED
*
*/
public Optional usageType() {
return Optional.ofNullable(this.usageType);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PlanDataResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String billingCycle;
private String effectiveDate;
private String planId;
private @Nullable String usageType;
public Builder() {}
public Builder(PlanDataResponse defaults) {
Objects.requireNonNull(defaults);
this.billingCycle = defaults.billingCycle;
this.effectiveDate = defaults.effectiveDate;
this.planId = defaults.planId;
this.usageType = defaults.usageType;
}
@CustomType.Setter
public Builder billingCycle(String billingCycle) {
if (billingCycle == null) {
throw new MissingRequiredPropertyException("PlanDataResponse", "billingCycle");
}
this.billingCycle = billingCycle;
return this;
}
@CustomType.Setter
public Builder effectiveDate(String effectiveDate) {
if (effectiveDate == null) {
throw new MissingRequiredPropertyException("PlanDataResponse", "effectiveDate");
}
this.effectiveDate = effectiveDate;
return this;
}
@CustomType.Setter
public Builder planId(String planId) {
if (planId == null) {
throw new MissingRequiredPropertyException("PlanDataResponse", "planId");
}
this.planId = planId;
return this;
}
@CustomType.Setter
public Builder usageType(@Nullable String usageType) {
this.usageType = usageType;
return this;
}
public PlanDataResponse build() {
final var _resultValue = new PlanDataResponse();
_resultValue.billingCycle = billingCycle;
_resultValue.effectiveDate = effectiveDate;
_resultValue.planId = planId;
_resultValue.usageType = usageType;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy