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

com.amazonaws.services.honeycode.model.ResultRow Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Honeycode module holds the client classes that are used for communicating with Amazon Honeycode Service

There is a newer version: 1.12.731
Show newest version
/*
 * Copyright 2015-2020 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.honeycode.model;

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

/**
 * 

* A single row in the ResultSet. *

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

* The ID for a particular row. *

*/ private String rowId; /** *

* List of all the data cells in a row. *

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

* The ID for a particular row. *

* * @param rowId * The ID for a particular row. */ public void setRowId(String rowId) { this.rowId = rowId; } /** *

* The ID for a particular row. *

* * @return The ID for a particular row. */ public String getRowId() { return this.rowId; } /** *

* The ID for a particular row. *

* * @param rowId * The ID for a particular row. * @return Returns a reference to this object so that method calls can be chained together. */ public ResultRow withRowId(String rowId) { setRowId(rowId); return this; } /** *

* List of all the data cells in a row. *

* * @return List of all the data cells in a row. */ public java.util.List getDataItems() { return dataItems; } /** *

* List of all the data cells in a row. *

* * @param dataItems * List of all the data cells in a row. */ public void setDataItems(java.util.Collection dataItems) { if (dataItems == null) { this.dataItems = null; return; } this.dataItems = new java.util.ArrayList(dataItems); } /** *

* List of all the data cells in a row. *

*

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

* * @param dataItems * List of all the data cells in a row. * @return Returns a reference to this object so that method calls can be chained together. */ public ResultRow withDataItems(DataItem... dataItems) { if (this.dataItems == null) { setDataItems(new java.util.ArrayList(dataItems.length)); } for (DataItem ele : dataItems) { this.dataItems.add(ele); } return this; } /** *

* List of all the data cells in a row. *

* * @param dataItems * List of all the data cells in a row. * @return Returns a reference to this object so that method calls can be chained together. */ public ResultRow withDataItems(java.util.Collection dataItems) { setDataItems(dataItems); 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 (getRowId() != null) sb.append("RowId: ").append(getRowId()).append(","); if (getDataItems() != null) sb.append("DataItems: ").append("***Sensitive Data Redacted***"); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ResultRow == false) return false; ResultRow other = (ResultRow) obj; if (other.getRowId() == null ^ this.getRowId() == null) return false; if (other.getRowId() != null && other.getRowId().equals(this.getRowId()) == false) return false; if (other.getDataItems() == null ^ this.getDataItems() == null) return false; if (other.getDataItems() != null && other.getDataItems().equals(this.getDataItems()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRowId() == null) ? 0 : getRowId().hashCode()); hashCode = prime * hashCode + ((getDataItems() == null) ? 0 : getDataItems().hashCode()); return hashCode; } @Override public ResultRow clone() { try { return (ResultRow) 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.honeycode.model.transform.ResultRowMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy