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

com.amazonaws.services.datazone.model.PostTimeSeriesDataPointsResult Maven / Gradle / Ivy

Go to download

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

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

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

    /**
     * 

* The ID of the Amazon DataZone domain in which you want to post time series data points. *

*/ private String domainId; /** *

* The ID of the asset for which you want to post time series data points. *

*/ private String entityId; /** *

* The type of the asset for which you want to post data points. *

*/ private String entityType; /** *

* The forms that contain the data points that you have posted. *

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

* The ID of the Amazon DataZone domain in which you want to post time series data points. *

* * @param domainId * The ID of the Amazon DataZone domain in which you want to post time series data points. */ public void setDomainId(String domainId) { this.domainId = domainId; } /** *

* The ID of the Amazon DataZone domain in which you want to post time series data points. *

* * @return The ID of the Amazon DataZone domain in which you want to post time series data points. */ public String getDomainId() { return this.domainId; } /** *

* The ID of the Amazon DataZone domain in which you want to post time series data points. *

* * @param domainId * The ID of the Amazon DataZone domain in which you want to post time series data points. * @return Returns a reference to this object so that method calls can be chained together. */ public PostTimeSeriesDataPointsResult withDomainId(String domainId) { setDomainId(domainId); return this; } /** *

* The ID of the asset for which you want to post time series data points. *

* * @param entityId * The ID of the asset for which you want to post time series data points. */ public void setEntityId(String entityId) { this.entityId = entityId; } /** *

* The ID of the asset for which you want to post time series data points. *

* * @return The ID of the asset for which you want to post time series data points. */ public String getEntityId() { return this.entityId; } /** *

* The ID of the asset for which you want to post time series data points. *

* * @param entityId * The ID of the asset for which you want to post time series data points. * @return Returns a reference to this object so that method calls can be chained together. */ public PostTimeSeriesDataPointsResult withEntityId(String entityId) { setEntityId(entityId); return this; } /** *

* The type of the asset for which you want to post data points. *

* * @param entityType * The type of the asset for which you want to post data points. * @see TimeSeriesEntityType */ public void setEntityType(String entityType) { this.entityType = entityType; } /** *

* The type of the asset for which you want to post data points. *

* * @return The type of the asset for which you want to post data points. * @see TimeSeriesEntityType */ public String getEntityType() { return this.entityType; } /** *

* The type of the asset for which you want to post data points. *

* * @param entityType * The type of the asset for which you want to post data points. * @return Returns a reference to this object so that method calls can be chained together. * @see TimeSeriesEntityType */ public PostTimeSeriesDataPointsResult withEntityType(String entityType) { setEntityType(entityType); return this; } /** *

* The type of the asset for which you want to post data points. *

* * @param entityType * The type of the asset for which you want to post data points. * @return Returns a reference to this object so that method calls can be chained together. * @see TimeSeriesEntityType */ public PostTimeSeriesDataPointsResult withEntityType(TimeSeriesEntityType entityType) { this.entityType = entityType.toString(); return this; } /** *

* The forms that contain the data points that you have posted. *

* * @return The forms that contain the data points that you have posted. */ public java.util.List getForms() { return forms; } /** *

* The forms that contain the data points that you have posted. *

* * @param forms * The forms that contain the data points that you have posted. */ public void setForms(java.util.Collection forms) { if (forms == null) { this.forms = null; return; } this.forms = new java.util.ArrayList(forms); } /** *

* The forms that contain the data points that you have posted. *

*

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

* * @param forms * The forms that contain the data points that you have posted. * @return Returns a reference to this object so that method calls can be chained together. */ public PostTimeSeriesDataPointsResult withForms(TimeSeriesDataPointFormOutput... forms) { if (this.forms == null) { setForms(new java.util.ArrayList(forms.length)); } for (TimeSeriesDataPointFormOutput ele : forms) { this.forms.add(ele); } return this; } /** *

* The forms that contain the data points that you have posted. *

* * @param forms * The forms that contain the data points that you have posted. * @return Returns a reference to this object so that method calls can be chained together. */ public PostTimeSeriesDataPointsResult withForms(java.util.Collection forms) { setForms(forms); 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 (getDomainId() != null) sb.append("DomainId: ").append(getDomainId()).append(","); if (getEntityId() != null) sb.append("EntityId: ").append(getEntityId()).append(","); if (getEntityType() != null) sb.append("EntityType: ").append(getEntityType()).append(","); if (getForms() != null) sb.append("Forms: ").append(getForms()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PostTimeSeriesDataPointsResult == false) return false; PostTimeSeriesDataPointsResult other = (PostTimeSeriesDataPointsResult) obj; if (other.getDomainId() == null ^ this.getDomainId() == null) return false; if (other.getDomainId() != null && other.getDomainId().equals(this.getDomainId()) == false) return false; if (other.getEntityId() == null ^ this.getEntityId() == null) return false; if (other.getEntityId() != null && other.getEntityId().equals(this.getEntityId()) == false) return false; if (other.getEntityType() == null ^ this.getEntityType() == null) return false; if (other.getEntityType() != null && other.getEntityType().equals(this.getEntityType()) == false) return false; if (other.getForms() == null ^ this.getForms() == null) return false; if (other.getForms() != null && other.getForms().equals(this.getForms()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDomainId() == null) ? 0 : getDomainId().hashCode()); hashCode = prime * hashCode + ((getEntityId() == null) ? 0 : getEntityId().hashCode()); hashCode = prime * hashCode + ((getEntityType() == null) ? 0 : getEntityType().hashCode()); hashCode = prime * hashCode + ((getForms() == null) ? 0 : getForms().hashCode()); return hashCode; } @Override public PostTimeSeriesDataPointsResult clone() { try { return (PostTimeSeriesDataPointsResult) 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