software.amazon.awssdk.services.costexplorer.model.SavingsPlansPurchaseRecommendationDetail Maven / Gradle / Ivy
Show all versions of costexplorer Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.costexplorer.model;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*
* Details for your recommended Savings Plans.
*
*/
@Generated("software.amazon.awssdk:codegen")
public final class SavingsPlansPurchaseRecommendationDetail implements SdkPojo, Serializable,
ToCopyableBuilder {
private static final SdkField SAVINGS_PLANS_DETAILS_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("SavingsPlansDetails")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::savingsPlansDetails))
.setter(setter(Builder::savingsPlansDetails)).constructor(SavingsPlansDetails::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SavingsPlansDetails").build())
.build();
private static final SdkField ACCOUNT_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("AccountId").getter(getter(SavingsPlansPurchaseRecommendationDetail::accountId))
.setter(setter(Builder::accountId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AccountId").build()).build();
private static final SdkField UPFRONT_COST_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("UpfrontCost").getter(getter(SavingsPlansPurchaseRecommendationDetail::upfrontCost))
.setter(setter(Builder::upfrontCost))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("UpfrontCost").build()).build();
private static final SdkField ESTIMATED_ROI_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("EstimatedROI").getter(getter(SavingsPlansPurchaseRecommendationDetail::estimatedROI))
.setter(setter(Builder::estimatedROI))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EstimatedROI").build()).build();
private static final SdkField CURRENCY_CODE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("CurrencyCode").getter(getter(SavingsPlansPurchaseRecommendationDetail::currencyCode))
.setter(setter(Builder::currencyCode))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CurrencyCode").build()).build();
private static final SdkField ESTIMATED_SP_COST_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("EstimatedSPCost").getter(getter(SavingsPlansPurchaseRecommendationDetail::estimatedSPCost))
.setter(setter(Builder::estimatedSPCost))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EstimatedSPCost").build()).build();
private static final SdkField ESTIMATED_ON_DEMAND_COST_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("EstimatedOnDemandCost").getter(getter(SavingsPlansPurchaseRecommendationDetail::estimatedOnDemandCost))
.setter(setter(Builder::estimatedOnDemandCost))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EstimatedOnDemandCost").build())
.build();
private static final SdkField ESTIMATED_ON_DEMAND_COST_WITH_CURRENT_COMMITMENT_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("EstimatedOnDemandCostWithCurrentCommitment")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::estimatedOnDemandCostWithCurrentCommitment))
.setter(setter(Builder::estimatedOnDemandCostWithCurrentCommitment))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("EstimatedOnDemandCostWithCurrentCommitment").build()).build();
private static final SdkField ESTIMATED_SAVINGS_AMOUNT_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("EstimatedSavingsAmount")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::estimatedSavingsAmount))
.setter(setter(Builder::estimatedSavingsAmount))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EstimatedSavingsAmount").build())
.build();
private static final SdkField ESTIMATED_SAVINGS_PERCENTAGE_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("EstimatedSavingsPercentage")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::estimatedSavingsPercentage))
.setter(setter(Builder::estimatedSavingsPercentage))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EstimatedSavingsPercentage").build())
.build();
private static final SdkField HOURLY_COMMITMENT_TO_PURCHASE_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("HourlyCommitmentToPurchase")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::hourlyCommitmentToPurchase))
.setter(setter(Builder::hourlyCommitmentToPurchase))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("HourlyCommitmentToPurchase").build())
.build();
private static final SdkField ESTIMATED_AVERAGE_UTILIZATION_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("EstimatedAverageUtilization")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::estimatedAverageUtilization))
.setter(setter(Builder::estimatedAverageUtilization))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EstimatedAverageUtilization")
.build()).build();
private static final SdkField ESTIMATED_MONTHLY_SAVINGS_AMOUNT_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("EstimatedMonthlySavingsAmount")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::estimatedMonthlySavingsAmount))
.setter(setter(Builder::estimatedMonthlySavingsAmount))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EstimatedMonthlySavingsAmount")
.build()).build();
private static final SdkField CURRENT_MINIMUM_HOURLY_ON_DEMAND_SPEND_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("CurrentMinimumHourlyOnDemandSpend")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::currentMinimumHourlyOnDemandSpend))
.setter(setter(Builder::currentMinimumHourlyOnDemandSpend))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CurrentMinimumHourlyOnDemandSpend")
.build()).build();
private static final SdkField CURRENT_MAXIMUM_HOURLY_ON_DEMAND_SPEND_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("CurrentMaximumHourlyOnDemandSpend")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::currentMaximumHourlyOnDemandSpend))
.setter(setter(Builder::currentMaximumHourlyOnDemandSpend))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CurrentMaximumHourlyOnDemandSpend")
.build()).build();
private static final SdkField CURRENT_AVERAGE_HOURLY_ON_DEMAND_SPEND_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("CurrentAverageHourlyOnDemandSpend")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::currentAverageHourlyOnDemandSpend))
.setter(setter(Builder::currentAverageHourlyOnDemandSpend))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CurrentAverageHourlyOnDemandSpend")
.build()).build();
private static final SdkField RECOMMENDATION_DETAIL_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("RecommendationDetailId")
.getter(getter(SavingsPlansPurchaseRecommendationDetail::recommendationDetailId))
.setter(setter(Builder::recommendationDetailId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RecommendationDetailId").build())
.build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(SAVINGS_PLANS_DETAILS_FIELD,
ACCOUNT_ID_FIELD, UPFRONT_COST_FIELD, ESTIMATED_ROI_FIELD, CURRENCY_CODE_FIELD, ESTIMATED_SP_COST_FIELD,
ESTIMATED_ON_DEMAND_COST_FIELD, ESTIMATED_ON_DEMAND_COST_WITH_CURRENT_COMMITMENT_FIELD,
ESTIMATED_SAVINGS_AMOUNT_FIELD, ESTIMATED_SAVINGS_PERCENTAGE_FIELD, HOURLY_COMMITMENT_TO_PURCHASE_FIELD,
ESTIMATED_AVERAGE_UTILIZATION_FIELD, ESTIMATED_MONTHLY_SAVINGS_AMOUNT_FIELD,
CURRENT_MINIMUM_HOURLY_ON_DEMAND_SPEND_FIELD, CURRENT_MAXIMUM_HOURLY_ON_DEMAND_SPEND_FIELD,
CURRENT_AVERAGE_HOURLY_ON_DEMAND_SPEND_FIELD, RECOMMENDATION_DETAIL_ID_FIELD));
private static final long serialVersionUID = 1L;
private final SavingsPlansDetails savingsPlansDetails;
private final String accountId;
private final String upfrontCost;
private final String estimatedROI;
private final String currencyCode;
private final String estimatedSPCost;
private final String estimatedOnDemandCost;
private final String estimatedOnDemandCostWithCurrentCommitment;
private final String estimatedSavingsAmount;
private final String estimatedSavingsPercentage;
private final String hourlyCommitmentToPurchase;
private final String estimatedAverageUtilization;
private final String estimatedMonthlySavingsAmount;
private final String currentMinimumHourlyOnDemandSpend;
private final String currentMaximumHourlyOnDemandSpend;
private final String currentAverageHourlyOnDemandSpend;
private final String recommendationDetailId;
private SavingsPlansPurchaseRecommendationDetail(BuilderImpl builder) {
this.savingsPlansDetails = builder.savingsPlansDetails;
this.accountId = builder.accountId;
this.upfrontCost = builder.upfrontCost;
this.estimatedROI = builder.estimatedROI;
this.currencyCode = builder.currencyCode;
this.estimatedSPCost = builder.estimatedSPCost;
this.estimatedOnDemandCost = builder.estimatedOnDemandCost;
this.estimatedOnDemandCostWithCurrentCommitment = builder.estimatedOnDemandCostWithCurrentCommitment;
this.estimatedSavingsAmount = builder.estimatedSavingsAmount;
this.estimatedSavingsPercentage = builder.estimatedSavingsPercentage;
this.hourlyCommitmentToPurchase = builder.hourlyCommitmentToPurchase;
this.estimatedAverageUtilization = builder.estimatedAverageUtilization;
this.estimatedMonthlySavingsAmount = builder.estimatedMonthlySavingsAmount;
this.currentMinimumHourlyOnDemandSpend = builder.currentMinimumHourlyOnDemandSpend;
this.currentMaximumHourlyOnDemandSpend = builder.currentMaximumHourlyOnDemandSpend;
this.currentAverageHourlyOnDemandSpend = builder.currentAverageHourlyOnDemandSpend;
this.recommendationDetailId = builder.recommendationDetailId;
}
/**
*
* Details for your recommended Savings Plans.
*
*
* @return Details for your recommended Savings Plans.
*/
public final SavingsPlansDetails savingsPlansDetails() {
return savingsPlansDetails;
}
/**
*
* The AccountID
the recommendation is generated for.
*
*
* @return The AccountID
the recommendation is generated for.
*/
public final String accountId() {
return accountId;
}
/**
*
* The upfront cost of the recommended Savings Plans, based on the selected payment option.
*
*
* @return The upfront cost of the recommended Savings Plans, based on the selected payment option.
*/
public final String upfrontCost() {
return upfrontCost;
}
/**
*
* The estimated return on investment that's based on the recommended Savings Plans that you purchased. This is
* calculated as estimatedSavingsAmount
/ estimatedSPCost
*100.
*
*
* @return The estimated return on investment that's based on the recommended Savings Plans that you purchased. This
* is calculated as estimatedSavingsAmount
/ estimatedSPCost
*100.
*/
public final String estimatedROI() {
return estimatedROI;
}
/**
*
* The currency code that Amazon Web Services used to generate the recommendations and present potential savings.
*
*
* @return The currency code that Amazon Web Services used to generate the recommendations and present potential
* savings.
*/
public final String currencyCode() {
return currencyCode;
}
/**
*
* The cost of the recommended Savings Plans over the length of the lookback period.
*
*
* @return The cost of the recommended Savings Plans over the length of the lookback period.
*/
public final String estimatedSPCost() {
return estimatedSPCost;
}
/**
*
* The remaining On-Demand cost estimated to not be covered by the recommended Savings Plans, over the length of the
* lookback period.
*
*
* @return The remaining On-Demand cost estimated to not be covered by the recommended Savings Plans, over the
* length of the lookback period.
*/
public final String estimatedOnDemandCost() {
return estimatedOnDemandCost;
}
/**
*
* The estimated On-Demand costs you expect with no additional commitment, based on your usage of the selected time
* period and the Savings Plans you own.
*
*
* @return The estimated On-Demand costs you expect with no additional commitment, based on your usage of the
* selected time period and the Savings Plans you own.
*/
public final String estimatedOnDemandCostWithCurrentCommitment() {
return estimatedOnDemandCostWithCurrentCommitment;
}
/**
*
* The estimated savings amount that's based on the recommended Savings Plans over the length of the lookback
* period.
*
*
* @return The estimated savings amount that's based on the recommended Savings Plans over the length of the
* lookback period.
*/
public final String estimatedSavingsAmount() {
return estimatedSavingsAmount;
}
/**
*
* The estimated savings percentage relative to the total cost of applicable On-Demand usage over the lookback
* period.
*
*
* @return The estimated savings percentage relative to the total cost of applicable On-Demand usage over the
* lookback period.
*/
public final String estimatedSavingsPercentage() {
return estimatedSavingsPercentage;
}
/**
*
* The recommended hourly commitment level for the Savings Plans type and the configuration that's based on the
* usage during the lookback period.
*
*
* @return The recommended hourly commitment level for the Savings Plans type and the configuration that's based on
* the usage during the lookback period.
*/
public final String hourlyCommitmentToPurchase() {
return hourlyCommitmentToPurchase;
}
/**
*
* The estimated utilization of the recommended Savings Plans.
*
*
* @return The estimated utilization of the recommended Savings Plans.
*/
public final String estimatedAverageUtilization() {
return estimatedAverageUtilization;
}
/**
*
* The estimated monthly savings amount based on the recommended Savings Plans.
*
*
* @return The estimated monthly savings amount based on the recommended Savings Plans.
*/
public final String estimatedMonthlySavingsAmount() {
return estimatedMonthlySavingsAmount;
}
/**
*
* The lowest value of hourly On-Demand spend over the lookback period of the applicable usage type.
*
*
* @return The lowest value of hourly On-Demand spend over the lookback period of the applicable usage type.
*/
public final String currentMinimumHourlyOnDemandSpend() {
return currentMinimumHourlyOnDemandSpend;
}
/**
*
* The highest value of hourly On-Demand spend over the lookback period of the applicable usage type.
*
*
* @return The highest value of hourly On-Demand spend over the lookback period of the applicable usage type.
*/
public final String currentMaximumHourlyOnDemandSpend() {
return currentMaximumHourlyOnDemandSpend;
}
/**
*
* The average value of hourly On-Demand spend over the lookback period of the applicable usage type.
*
*
* @return The average value of hourly On-Demand spend over the lookback period of the applicable usage type.
*/
public final String currentAverageHourlyOnDemandSpend() {
return currentAverageHourlyOnDemandSpend;
}
/**
*
* Contains detailed information about a specific Savings Plan recommendation.
*
*
* @return Contains detailed information about a specific Savings Plan recommendation.
*/
public final String recommendationDetailId() {
return recommendationDetailId;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + Objects.hashCode(savingsPlansDetails());
hashCode = 31 * hashCode + Objects.hashCode(accountId());
hashCode = 31 * hashCode + Objects.hashCode(upfrontCost());
hashCode = 31 * hashCode + Objects.hashCode(estimatedROI());
hashCode = 31 * hashCode + Objects.hashCode(currencyCode());
hashCode = 31 * hashCode + Objects.hashCode(estimatedSPCost());
hashCode = 31 * hashCode + Objects.hashCode(estimatedOnDemandCost());
hashCode = 31 * hashCode + Objects.hashCode(estimatedOnDemandCostWithCurrentCommitment());
hashCode = 31 * hashCode + Objects.hashCode(estimatedSavingsAmount());
hashCode = 31 * hashCode + Objects.hashCode(estimatedSavingsPercentage());
hashCode = 31 * hashCode + Objects.hashCode(hourlyCommitmentToPurchase());
hashCode = 31 * hashCode + Objects.hashCode(estimatedAverageUtilization());
hashCode = 31 * hashCode + Objects.hashCode(estimatedMonthlySavingsAmount());
hashCode = 31 * hashCode + Objects.hashCode(currentMinimumHourlyOnDemandSpend());
hashCode = 31 * hashCode + Objects.hashCode(currentMaximumHourlyOnDemandSpend());
hashCode = 31 * hashCode + Objects.hashCode(currentAverageHourlyOnDemandSpend());
hashCode = 31 * hashCode + Objects.hashCode(recommendationDetailId());
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof SavingsPlansPurchaseRecommendationDetail)) {
return false;
}
SavingsPlansPurchaseRecommendationDetail other = (SavingsPlansPurchaseRecommendationDetail) obj;
return Objects.equals(savingsPlansDetails(), other.savingsPlansDetails())
&& Objects.equals(accountId(), other.accountId())
&& Objects.equals(upfrontCost(), other.upfrontCost())
&& Objects.equals(estimatedROI(), other.estimatedROI())
&& Objects.equals(currencyCode(), other.currencyCode())
&& Objects.equals(estimatedSPCost(), other.estimatedSPCost())
&& Objects.equals(estimatedOnDemandCost(), other.estimatedOnDemandCost())
&& Objects.equals(estimatedOnDemandCostWithCurrentCommitment(),
other.estimatedOnDemandCostWithCurrentCommitment())
&& Objects.equals(estimatedSavingsAmount(), other.estimatedSavingsAmount())
&& Objects.equals(estimatedSavingsPercentage(), other.estimatedSavingsPercentage())
&& Objects.equals(hourlyCommitmentToPurchase(), other.hourlyCommitmentToPurchase())
&& Objects.equals(estimatedAverageUtilization(), other.estimatedAverageUtilization())
&& Objects.equals(estimatedMonthlySavingsAmount(), other.estimatedMonthlySavingsAmount())
&& Objects.equals(currentMinimumHourlyOnDemandSpend(), other.currentMinimumHourlyOnDemandSpend())
&& Objects.equals(currentMaximumHourlyOnDemandSpend(), other.currentMaximumHourlyOnDemandSpend())
&& Objects.equals(currentAverageHourlyOnDemandSpend(), other.currentAverageHourlyOnDemandSpend())
&& Objects.equals(recommendationDetailId(), other.recommendationDetailId());
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*/
@Override
public final String toString() {
return ToString.builder("SavingsPlansPurchaseRecommendationDetail").add("SavingsPlansDetails", savingsPlansDetails())
.add("AccountId", accountId()).add("UpfrontCost", upfrontCost()).add("EstimatedROI", estimatedROI())
.add("CurrencyCode", currencyCode()).add("EstimatedSPCost", estimatedSPCost())
.add("EstimatedOnDemandCost", estimatedOnDemandCost())
.add("EstimatedOnDemandCostWithCurrentCommitment", estimatedOnDemandCostWithCurrentCommitment())
.add("EstimatedSavingsAmount", estimatedSavingsAmount())
.add("EstimatedSavingsPercentage", estimatedSavingsPercentage())
.add("HourlyCommitmentToPurchase", hourlyCommitmentToPurchase())
.add("EstimatedAverageUtilization", estimatedAverageUtilization())
.add("EstimatedMonthlySavingsAmount", estimatedMonthlySavingsAmount())
.add("CurrentMinimumHourlyOnDemandSpend", currentMinimumHourlyOnDemandSpend())
.add("CurrentMaximumHourlyOnDemandSpend", currentMaximumHourlyOnDemandSpend())
.add("CurrentAverageHourlyOnDemandSpend", currentAverageHourlyOnDemandSpend())
.add("RecommendationDetailId", recommendationDetailId()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "SavingsPlansDetails":
return Optional.ofNullable(clazz.cast(savingsPlansDetails()));
case "AccountId":
return Optional.ofNullable(clazz.cast(accountId()));
case "UpfrontCost":
return Optional.ofNullable(clazz.cast(upfrontCost()));
case "EstimatedROI":
return Optional.ofNullable(clazz.cast(estimatedROI()));
case "CurrencyCode":
return Optional.ofNullable(clazz.cast(currencyCode()));
case "EstimatedSPCost":
return Optional.ofNullable(clazz.cast(estimatedSPCost()));
case "EstimatedOnDemandCost":
return Optional.ofNullable(clazz.cast(estimatedOnDemandCost()));
case "EstimatedOnDemandCostWithCurrentCommitment":
return Optional.ofNullable(clazz.cast(estimatedOnDemandCostWithCurrentCommitment()));
case "EstimatedSavingsAmount":
return Optional.ofNullable(clazz.cast(estimatedSavingsAmount()));
case "EstimatedSavingsPercentage":
return Optional.ofNullable(clazz.cast(estimatedSavingsPercentage()));
case "HourlyCommitmentToPurchase":
return Optional.ofNullable(clazz.cast(hourlyCommitmentToPurchase()));
case "EstimatedAverageUtilization":
return Optional.ofNullable(clazz.cast(estimatedAverageUtilization()));
case "EstimatedMonthlySavingsAmount":
return Optional.ofNullable(clazz.cast(estimatedMonthlySavingsAmount()));
case "CurrentMinimumHourlyOnDemandSpend":
return Optional.ofNullable(clazz.cast(currentMinimumHourlyOnDemandSpend()));
case "CurrentMaximumHourlyOnDemandSpend":
return Optional.ofNullable(clazz.cast(currentMaximumHourlyOnDemandSpend()));
case "CurrentAverageHourlyOnDemandSpend":
return Optional.ofNullable(clazz.cast(currentAverageHourlyOnDemandSpend()));
case "RecommendationDetailId":
return Optional.ofNullable(clazz.cast(recommendationDetailId()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function