All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.billingconductor.model.UpdatePricingRuleRequest Maven / Gradle / Ivy

/*
 * 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.billingconductor.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 UpdatePricingRuleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) of the pricing rule to update. *

*/ private String arn; /** *

* The new name of the pricing rule. The name must be unique to each pricing rule. *

*/ private String name; /** *

* The new description for the pricing rule. *

*/ private String description; /** *

* The new pricing rule type. *

*/ private String type; /** *

* The new modifier to show pricing plan rates as a percentage. *

*/ private Double modifierPercentage; /** *

* The set of tiering configurations for the pricing rule. *

*/ private UpdateTieringInput tiering; /** *

* The Amazon Resource Name (ARN) of the pricing rule to update. *

* * @param arn * The Amazon Resource Name (ARN) of the pricing rule to update. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the pricing rule to update. *

* * @return The Amazon Resource Name (ARN) of the pricing rule to update. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the pricing rule to update. *

* * @param arn * The Amazon Resource Name (ARN) of the pricing rule to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePricingRuleRequest withArn(String arn) { setArn(arn); return this; } /** *

* The new name of the pricing rule. The name must be unique to each pricing rule. *

* * @param name * The new name of the pricing rule. The name must be unique to each pricing rule. */ public void setName(String name) { this.name = name; } /** *

* The new name of the pricing rule. The name must be unique to each pricing rule. *

* * @return The new name of the pricing rule. The name must be unique to each pricing rule. */ public String getName() { return this.name; } /** *

* The new name of the pricing rule. The name must be unique to each pricing rule. *

* * @param name * The new name of the pricing rule. The name must be unique to each pricing rule. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePricingRuleRequest withName(String name) { setName(name); return this; } /** *

* The new description for the pricing rule. *

* * @param description * The new description for the pricing rule. */ public void setDescription(String description) { this.description = description; } /** *

* The new description for the pricing rule. *

* * @return The new description for the pricing rule. */ public String getDescription() { return this.description; } /** *

* The new description for the pricing rule. *

* * @param description * The new description for the pricing rule. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePricingRuleRequest withDescription(String description) { setDescription(description); return this; } /** *

* The new pricing rule type. *

* * @param type * The new pricing rule type. * @see PricingRuleType */ public void setType(String type) { this.type = type; } /** *

* The new pricing rule type. *

* * @return The new pricing rule type. * @see PricingRuleType */ public String getType() { return this.type; } /** *

* The new pricing rule type. *

* * @param type * The new pricing rule type. * @return Returns a reference to this object so that method calls can be chained together. * @see PricingRuleType */ public UpdatePricingRuleRequest withType(String type) { setType(type); return this; } /** *

* The new pricing rule type. *

* * @param type * The new pricing rule type. * @return Returns a reference to this object so that method calls can be chained together. * @see PricingRuleType */ public UpdatePricingRuleRequest withType(PricingRuleType type) { this.type = type.toString(); return this; } /** *

* The new modifier to show pricing plan rates as a percentage. *

* * @param modifierPercentage * The new modifier to show pricing plan rates as a percentage. */ public void setModifierPercentage(Double modifierPercentage) { this.modifierPercentage = modifierPercentage; } /** *

* The new modifier to show pricing plan rates as a percentage. *

* * @return The new modifier to show pricing plan rates as a percentage. */ public Double getModifierPercentage() { return this.modifierPercentage; } /** *

* The new modifier to show pricing plan rates as a percentage. *

* * @param modifierPercentage * The new modifier to show pricing plan rates as a percentage. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePricingRuleRequest withModifierPercentage(Double modifierPercentage) { setModifierPercentage(modifierPercentage); return this; } /** *

* The set of tiering configurations for the pricing rule. *

* * @param tiering * The set of tiering configurations for the pricing rule. */ public void setTiering(UpdateTieringInput tiering) { this.tiering = tiering; } /** *

* The set of tiering configurations for the pricing rule. *

* * @return The set of tiering configurations for the pricing rule. */ public UpdateTieringInput getTiering() { return this.tiering; } /** *

* The set of tiering configurations for the pricing rule. *

* * @param tiering * The set of tiering configurations for the pricing rule. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePricingRuleRequest withTiering(UpdateTieringInput tiering) { setTiering(tiering); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getName() != null) sb.append("Name: ").append("***Sensitive Data Redacted***").append(","); if (getDescription() != null) sb.append("Description: ").append("***Sensitive Data Redacted***").append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getModifierPercentage() != null) sb.append("ModifierPercentage: ").append(getModifierPercentage()).append(","); if (getTiering() != null) sb.append("Tiering: ").append(getTiering()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdatePricingRuleRequest == false) return false; UpdatePricingRuleRequest other = (UpdatePricingRuleRequest) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getModifierPercentage() == null ^ this.getModifierPercentage() == null) return false; if (other.getModifierPercentage() != null && other.getModifierPercentage().equals(this.getModifierPercentage()) == false) return false; if (other.getTiering() == null ^ this.getTiering() == null) return false; if (other.getTiering() != null && other.getTiering().equals(this.getTiering()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getModifierPercentage() == null) ? 0 : getModifierPercentage().hashCode()); hashCode = prime * hashCode + ((getTiering() == null) ? 0 : getTiering().hashCode()); return hashCode; } @Override public UpdatePricingRuleRequest clone() { return (UpdatePricingRuleRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy