com.amazonaws.services.iottwinmaker.model.UpdatePricingPlanRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-iottwinmaker Show documentation
Show all versions of aws-java-sdk-iottwinmaker Show documentation
The AWS Java SDK for AWS IoT TwinMaker module holds the client classes that are used for communicating with AWS IoT TwinMaker Service
The newest version!
/*
* Copyright 2019-2024 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 bundleNames;
/**
*
* 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 getBundleNames() {
return bundleNames;
}
/**
*
* The bundle names.
*
*
* @param bundleNames
* The bundle names.
*/
public void setBundleNames(java.util.Collection bundleNames) {
if (bundleNames == null) {
this.bundleNames = null;
return;
}
this.bundleNames = new java.util.ArrayList(bundleNames);
}
/**
*
* 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(bundleNames.length));
}
for (String ele : bundleNames) {
this.bundleNames.add(ele);
}
return this;
}
/**
*
* 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 bundleNames) {
setBundleNames(bundleNames);
return this;
}
/**
* 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.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getPricingMode() != null)
sb.append("PricingMode: ").append(getPricingMode()).append(",");
if (getBundleNames() != null)
sb.append("BundleNames: ").append(getBundleNames());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdatePricingPlanRequest == false)
return false;
UpdatePricingPlanRequest other = (UpdatePricingPlanRequest) obj;
if (other.getPricingMode() == null ^ this.getPricingMode() == null)
return false;
if (other.getPricingMode() != null && other.getPricingMode().equals(this.getPricingMode()) == false)
return false;
if (other.getBundleNames() == null ^ this.getBundleNames() == null)
return false;
if (other.getBundleNames() != null && other.getBundleNames().equals(this.getBundleNames()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getPricingMode() == null) ? 0 : getPricingMode().hashCode());
hashCode = prime * hashCode + ((getBundleNames() == null) ? 0 : getBundleNames().hashCode());
return hashCode;
}
@Override
public UpdatePricingPlanRequest clone() {
return (UpdatePricingPlanRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy