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

com.amazonaws.services.billingconductor.model.AccountGrouping 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

There is a newer version: 1.12.782
Show 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The set of accounts that will be under the billing group. The set of accounts resemble the linked accounts in a * consolidated billing family. *

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

* The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing family, * and not associated with another billing group. *

*/ private java.util.List linkedAccountIds; /** *

* Specifies if this billing group will automatically associate newly added Amazon Web Services accounts that join * your consolidated billing family. *

*/ private Boolean autoAssociate; /** *

* The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing family, * and not associated with another billing group. *

* * @return The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing * family, and not associated with another billing group. */ public java.util.List getLinkedAccountIds() { return linkedAccountIds; } /** *

* The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing family, * and not associated with another billing group. *

* * @param linkedAccountIds * The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing * family, and not associated with another billing group. */ public void setLinkedAccountIds(java.util.Collection linkedAccountIds) { if (linkedAccountIds == null) { this.linkedAccountIds = null; return; } this.linkedAccountIds = new java.util.ArrayList(linkedAccountIds); } /** *

* The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing family, * and not associated with another billing group. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLinkedAccountIds(java.util.Collection)} or {@link #withLinkedAccountIds(java.util.Collection)} if you * want to override the existing values. *

* * @param linkedAccountIds * The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing * family, and not associated with another billing group. * @return Returns a reference to this object so that method calls can be chained together. */ public AccountGrouping withLinkedAccountIds(String... linkedAccountIds) { if (this.linkedAccountIds == null) { setLinkedAccountIds(new java.util.ArrayList(linkedAccountIds.length)); } for (String ele : linkedAccountIds) { this.linkedAccountIds.add(ele); } return this; } /** *

* The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing family, * and not associated with another billing group. *

* * @param linkedAccountIds * The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing * family, and not associated with another billing group. * @return Returns a reference to this object so that method calls can be chained together. */ public AccountGrouping withLinkedAccountIds(java.util.Collection linkedAccountIds) { setLinkedAccountIds(linkedAccountIds); return this; } /** *

* Specifies if this billing group will automatically associate newly added Amazon Web Services accounts that join * your consolidated billing family. *

* * @param autoAssociate * Specifies if this billing group will automatically associate newly added Amazon Web Services accounts that * join your consolidated billing family. */ public void setAutoAssociate(Boolean autoAssociate) { this.autoAssociate = autoAssociate; } /** *

* Specifies if this billing group will automatically associate newly added Amazon Web Services accounts that join * your consolidated billing family. *

* * @return Specifies if this billing group will automatically associate newly added Amazon Web Services accounts * that join your consolidated billing family. */ public Boolean getAutoAssociate() { return this.autoAssociate; } /** *

* Specifies if this billing group will automatically associate newly added Amazon Web Services accounts that join * your consolidated billing family. *

* * @param autoAssociate * Specifies if this billing group will automatically associate newly added Amazon Web Services accounts that * join your consolidated billing family. * @return Returns a reference to this object so that method calls can be chained together. */ public AccountGrouping withAutoAssociate(Boolean autoAssociate) { setAutoAssociate(autoAssociate); return this; } /** *

* Specifies if this billing group will automatically associate newly added Amazon Web Services accounts that join * your consolidated billing family. *

* * @return Specifies if this billing group will automatically associate newly added Amazon Web Services accounts * that join your consolidated billing family. */ public Boolean isAutoAssociate() { return this.autoAssociate; } /** * 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 (getLinkedAccountIds() != null) sb.append("LinkedAccountIds: ").append(getLinkedAccountIds()).append(","); if (getAutoAssociate() != null) sb.append("AutoAssociate: ").append(getAutoAssociate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AccountGrouping == false) return false; AccountGrouping other = (AccountGrouping) obj; if (other.getLinkedAccountIds() == null ^ this.getLinkedAccountIds() == null) return false; if (other.getLinkedAccountIds() != null && other.getLinkedAccountIds().equals(this.getLinkedAccountIds()) == false) return false; if (other.getAutoAssociate() == null ^ this.getAutoAssociate() == null) return false; if (other.getAutoAssociate() != null && other.getAutoAssociate().equals(this.getAutoAssociate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLinkedAccountIds() == null) ? 0 : getLinkedAccountIds().hashCode()); hashCode = prime * hashCode + ((getAutoAssociate() == null) ? 0 : getAutoAssociate().hashCode()); return hashCode; } @Override public AccountGrouping clone() { try { return (AccountGrouping) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.billingconductor.model.transform.AccountGroupingMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy