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

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

Go to download

The AWS Java SDK for AWSBillingConductor module holds the client classes that are used for communicating with AWSBillingConductor 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.billingconductor.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateBillingGroupResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

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

*/ private String arn; /** *

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

*/ private String name; /** *

* A description of the billing group. *

*/ private String description; /** *

* The account ID that serves as the main account in a billing group. *

*/ private String primaryAccountId; /** *

* The Amazon Resource Name (ARN) of the pricing plan to compute Amazon Web Services charges for the billing group. *

*/ private String pricingPlanArn; /** *

* The number of accounts in the particular billing group. *

*/ private Long size; /** *

* The most recent time when the billing group was modified. *

*/ private Long lastModifiedTime; /** *

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

*/ private String status; /** *

* The reason why the billing group is in its current status. *

*/ private String statusReason; /** *

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

*/ private UpdateBillingGroupAccountGrouping accountGrouping; /** *

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

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

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

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

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

* * @param arn * The Amazon Resource Name (ARN) of the billing group that was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBillingGroupResult 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 UpdateBillingGroupResult withName(String name) { setName(name); 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 UpdateBillingGroupResult withDescription(String description) { setDescription(description); return this; } /** *

* The account ID that serves as the main account in a billing group. *

* * @param primaryAccountId * The account ID that serves as the main account in a billing group. */ public void setPrimaryAccountId(String primaryAccountId) { this.primaryAccountId = primaryAccountId; } /** *

* The account ID that serves as the main account in a billing group. *

* * @return The account ID that serves as the main account in a billing group. */ public String getPrimaryAccountId() { return this.primaryAccountId; } /** *

* The account ID that serves as the main account in a billing group. *

* * @param primaryAccountId * The account ID that serves as the main account in a billing group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBillingGroupResult withPrimaryAccountId(String primaryAccountId) { setPrimaryAccountId(primaryAccountId); return this; } /** *

* The Amazon Resource Name (ARN) of the pricing plan to compute Amazon Web Services charges for the billing group. *

* * @param pricingPlanArn * The Amazon Resource Name (ARN) of the pricing plan to compute Amazon Web Services charges for the billing * group. */ public void setPricingPlanArn(String pricingPlanArn) { this.pricingPlanArn = pricingPlanArn; } /** *

* The Amazon Resource Name (ARN) of the pricing plan to compute Amazon Web Services charges for the billing group. *

* * @return The Amazon Resource Name (ARN) of the pricing plan to compute Amazon Web Services charges for the billing * group. */ public String getPricingPlanArn() { return this.pricingPlanArn; } /** *

* The Amazon Resource Name (ARN) of the pricing plan to compute Amazon Web Services charges for the billing group. *

* * @param pricingPlanArn * The Amazon Resource Name (ARN) of the pricing plan to compute Amazon Web Services charges for the billing * group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBillingGroupResult withPricingPlanArn(String pricingPlanArn) { setPricingPlanArn(pricingPlanArn); return this; } /** *

* The number of accounts in the particular billing group. *

* * @param size * The number of accounts in the particular billing group. */ public void setSize(Long size) { this.size = size; } /** *

* The number of accounts in the particular billing group. *

* * @return The number of accounts in the particular billing group. */ public Long getSize() { return this.size; } /** *

* The number of accounts in the particular billing group. *

* * @param size * The number of accounts in the particular billing group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBillingGroupResult withSize(Long size) { setSize(size); return this; } /** *

* The most recent time when the billing group was modified. *

* * @param lastModifiedTime * The most recent time when the billing group was modified. */ public void setLastModifiedTime(Long lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* The most recent time when the billing group was modified. *

* * @return The most recent time when the billing group was modified. */ public Long getLastModifiedTime() { return this.lastModifiedTime; } /** *

* The most recent time when the billing group was modified. *

* * @param lastModifiedTime * The most recent time when the billing group was modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBillingGroupResult withLastModifiedTime(Long lastModifiedTime) { setLastModifiedTime(lastModifiedTime); 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 UpdateBillingGroupResult 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 UpdateBillingGroupResult withStatus(BillingGroupStatus status) { this.status = status.toString(); return this; } /** *

* The reason why the billing group is in its current status. *

* * @param statusReason * The reason why the billing group is in its current status. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** *

* The reason why the billing group is in its current status. *

* * @return The reason why the billing group is in its current status. */ public String getStatusReason() { return this.statusReason; } /** *

* The reason why the billing group is in its current status. *

* * @param statusReason * The reason why the billing group is in its current status. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBillingGroupResult withStatusReason(String statusReason) { setStatusReason(statusReason); 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 UpdateBillingGroupResult 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 (getDescription() != null) sb.append("Description: ").append("***Sensitive Data Redacted***").append(","); if (getPrimaryAccountId() != null) sb.append("PrimaryAccountId: ").append(getPrimaryAccountId()).append(","); if (getPricingPlanArn() != null) sb.append("PricingPlanArn: ").append(getPricingPlanArn()).append(","); if (getSize() != null) sb.append("Size: ").append(getSize()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()).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 UpdateBillingGroupResult == false) return false; UpdateBillingGroupResult other = (UpdateBillingGroupResult) 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.getPrimaryAccountId() == null ^ this.getPrimaryAccountId() == null) return false; if (other.getPrimaryAccountId() != null && other.getPrimaryAccountId().equals(this.getPrimaryAccountId()) == false) return false; if (other.getPricingPlanArn() == null ^ this.getPricingPlanArn() == null) return false; if (other.getPricingPlanArn() != null && other.getPricingPlanArn().equals(this.getPricingPlanArn()) == false) return false; if (other.getSize() == null ^ this.getSize() == null) return false; if (other.getSize() != null && other.getSize().equals(this.getSize()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == 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.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == 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 + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getPrimaryAccountId() == null) ? 0 : getPrimaryAccountId().hashCode()); hashCode = prime * hashCode + ((getPricingPlanArn() == null) ? 0 : getPricingPlanArn().hashCode()); hashCode = prime * hashCode + ((getSize() == null) ? 0 : getSize().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); hashCode = prime * hashCode + ((getAccountGrouping() == null) ? 0 : getAccountGrouping().hashCode()); return hashCode; } @Override public UpdateBillingGroupResult clone() { try { return (UpdateBillingGroupResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy