/* * Copyright 2018-2023 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 com.amazonaws.services.iottwinmaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdatePricingPlanRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The pricing mode. *
*/ private String pricingMode; /** ** The bundle names. *
*/ private java.util.List* The pricing mode. *
* * @param pricingMode * The pricing mode. * @see PricingMode */ public void setPricingMode(String pricingMode) { this.pricingMode = pricingMode; } /** ** The pricing mode. *
* * @return The pricing mode. * @see PricingMode */ public String getPricingMode() { return this.pricingMode; } /** ** The pricing mode. *
* * @param pricingMode * The pricing mode. * @return Returns a reference to this object so that method calls can be chained together. * @see PricingMode */ public UpdatePricingPlanRequest withPricingMode(String pricingMode) { setPricingMode(pricingMode); return this; } /** ** The pricing mode. *
* * @param pricingMode * The pricing mode. * @return Returns a reference to this object so that method calls can be chained together. * @see PricingMode */ public UpdatePricingPlanRequest withPricingMode(PricingMode pricingMode) { this.pricingMode = pricingMode.toString(); return this; } /** ** The bundle names. *
* * @return The bundle names. */ public java.util.List* The bundle names. *
* * @param bundleNames * The bundle names. */ public void setBundleNames(java.util.Collection* The bundle names. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setBundleNames(java.util.Collection)} or {@link #withBundleNames(java.util.Collection)} if you want to * override the existing values. *
* * @param bundleNames * The bundle names. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePricingPlanRequest withBundleNames(String... bundleNames) { if (this.bundleNames == null) { setBundleNames(new java.util.ArrayList* The bundle names. *
* * @param bundleNames * The bundle names. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePricingPlanRequest withBundleNames(java.util.Collection