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

com.amazonaws.services.billingconductor.model.UpdateBillingGroupRequest 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 UpdateBillingGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) of the billing group being updated. *

*/ private String arn; /** *

* The name of the billing group. The names must be unique to each billing group. *

*/ private String name; /** *

* The status of the billing group. Only one of the valid values can be used. *

*/ private String status; /** *

* The preferences and settings that will be used to compute the Amazon Web Services charges for a billing group. *

*/ private ComputationPreference computationPreference; /** *

* A description of the billing group. *

*/ private String description; /** *

* Specifies if the billing group has automatic account association (AutoAssociate) enabled. *

*/ private UpdateBillingGroupAccountGrouping accountGrouping; /** *

* The Amazon Resource Name (ARN) of the billing group being updated. *

* * @param arn * The Amazon Resource Name (ARN) of the billing group being updated. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the billing group being updated. *

* * @return The Amazon Resource Name (ARN) of the billing group being updated. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the billing group being updated. *

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

* The name of the billing group. The names must be unique to each billing group. *

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

* The name of the billing group. The names must be unique to each billing group. *

* * @return The name of the billing group. The names must be unique to each billing group. */ public String getName() { return this.name; } /** *

* The name of the billing group. The names must be unique to each billing group. *

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

* The status of the billing group. Only one of the valid values can be used. *

* * @param status * The status of the billing group. Only one of the valid values can be used. * @see BillingGroupStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the billing group. Only one of the valid values can be used. *

* * @return The status of the billing group. Only one of the valid values can be used. * @see BillingGroupStatus */ public String getStatus() { return this.status; } /** *

* The status of the billing group. Only one of the valid values can be used. *

* * @param status * The status of the billing group. Only one of the valid values can be used. * @return Returns a reference to this object so that method calls can be chained together. * @see BillingGroupStatus */ public UpdateBillingGroupRequest withStatus(String status) { setStatus(status); return this; } /** *

* The status of the billing group. Only one of the valid values can be used. *

* * @param status * The status of the billing group. Only one of the valid values can be used. * @return Returns a reference to this object so that method calls can be chained together. * @see BillingGroupStatus */ public UpdateBillingGroupRequest withStatus(BillingGroupStatus status) { this.status = status.toString(); return this; } /** *

* The preferences and settings that will be used to compute the Amazon Web Services charges for a billing group. *

* * @param computationPreference * The preferences and settings that will be used to compute the Amazon Web Services charges for a billing * group. */ public void setComputationPreference(ComputationPreference computationPreference) { this.computationPreference = computationPreference; } /** *

* The preferences and settings that will be used to compute the Amazon Web Services charges for a billing group. *

* * @return The preferences and settings that will be used to compute the Amazon Web Services charges for a billing * group. */ public ComputationPreference getComputationPreference() { return this.computationPreference; } /** *

* The preferences and settings that will be used to compute the Amazon Web Services charges for a billing group. *

* * @param computationPreference * The preferences and settings that will be used to compute the Amazon Web Services charges for a billing * group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBillingGroupRequest withComputationPreference(ComputationPreference computationPreference) { setComputationPreference(computationPreference); return this; } /** *

* A description of the billing group. *

* * @param description * A description of the billing group. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the billing group. *

* * @return A description of the billing group. */ public String getDescription() { return this.description; } /** *

* A description of the billing group. *

* * @param description * A description of the billing group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBillingGroupRequest withDescription(String description) { setDescription(description); return this; } /** *

* Specifies if the billing group has automatic account association (AutoAssociate) enabled. *

* * @param accountGrouping * Specifies if the billing group has automatic account association (AutoAssociate) enabled. */ public void setAccountGrouping(UpdateBillingGroupAccountGrouping accountGrouping) { this.accountGrouping = accountGrouping; } /** *

* Specifies if the billing group has automatic account association (AutoAssociate) enabled. *

* * @return Specifies if the billing group has automatic account association (AutoAssociate) enabled. */ public UpdateBillingGroupAccountGrouping getAccountGrouping() { return this.accountGrouping; } /** *

* Specifies if the billing group has automatic account association (AutoAssociate) enabled. *

* * @param accountGrouping * Specifies if the billing group has automatic account association (AutoAssociate) enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBillingGroupRequest withAccountGrouping(UpdateBillingGroupAccountGrouping accountGrouping) { setAccountGrouping(accountGrouping); 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getComputationPreference() != null) sb.append("ComputationPreference: ").append(getComputationPreference()).append(","); if (getDescription() != null) sb.append("Description: ").append("***Sensitive Data Redacted***").append(","); if (getAccountGrouping() != null) sb.append("AccountGrouping: ").append(getAccountGrouping()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateBillingGroupRequest == false) return false; UpdateBillingGroupRequest other = (UpdateBillingGroupRequest) 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getComputationPreference() == null ^ this.getComputationPreference() == null) return false; if (other.getComputationPreference() != null && other.getComputationPreference().equals(this.getComputationPreference()) == 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.getAccountGrouping() == null ^ this.getAccountGrouping() == null) return false; if (other.getAccountGrouping() != null && other.getAccountGrouping().equals(this.getAccountGrouping()) == 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 + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getComputationPreference() == null) ? 0 : getComputationPreference().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getAccountGrouping() == null) ? 0 : getAccountGrouping().hashCode()); return hashCode; } @Override public UpdateBillingGroupRequest clone() { return (UpdateBillingGroupRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy