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

com.amazonaws.services.bcmdataexports.model.Table Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Billing and Cost Management Data Exports module holds the client classes that are used for communicating with AWS Billing and Cost Management Data Exports Service

There is a newer version: 1.12.780
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.bcmdataexports.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The details for the data export table. *

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

* The description for the table. *

*/ private String description; /** *

* The name of the table. *

*/ private String tableName; /** *

* The properties for the table. *

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

* The description for the table. *

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

* The description for the table. *

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

* The description for the table. *

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

* The name of the table. *

* * @param tableName * The name of the table. */ public void setTableName(String tableName) { this.tableName = tableName; } /** *

* The name of the table. *

* * @return The name of the table. */ public String getTableName() { return this.tableName; } /** *

* The name of the table. *

* * @param tableName * The name of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withTableName(String tableName) { setTableName(tableName); return this; } /** *

* The properties for the table. *

* * @return The properties for the table. */ public java.util.List getTableProperties() { return tableProperties; } /** *

* The properties for the table. *

* * @param tableProperties * The properties for the table. */ public void setTableProperties(java.util.Collection tableProperties) { if (tableProperties == null) { this.tableProperties = null; return; } this.tableProperties = new java.util.ArrayList(tableProperties); } /** *

* The properties for the table. *

*

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

* * @param tableProperties * The properties for the table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withTableProperties(TablePropertyDescription... tableProperties) { if (this.tableProperties == null) { setTableProperties(new java.util.ArrayList(tableProperties.length)); } for (TablePropertyDescription ele : tableProperties) { this.tableProperties.add(ele); } return this; } /** *

* The properties for the table. *

* * @param tableProperties * The properties for the table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withTableProperties(java.util.Collection tableProperties) { setTableProperties(tableProperties); 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 (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getTableName() != null) sb.append("TableName: ").append(getTableName()).append(","); if (getTableProperties() != null) sb.append("TableProperties: ").append(getTableProperties()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Table == false) return false; Table other = (Table) obj; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getTableName() == null ^ this.getTableName() == null) return false; if (other.getTableName() != null && other.getTableName().equals(this.getTableName()) == false) return false; if (other.getTableProperties() == null ^ this.getTableProperties() == null) return false; if (other.getTableProperties() != null && other.getTableProperties().equals(this.getTableProperties()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getTableName() == null) ? 0 : getTableName().hashCode()); hashCode = prime * hashCode + ((getTableProperties() == null) ? 0 : getTableProperties().hashCode()); return hashCode; } @Override public Table clone() { try { return (Table) 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.bcmdataexports.model.transform.TableMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy