com.amazonaws.services.forecast.model.DatasetGroupSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-forecast Show documentation
/*
* 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.forecast.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Provides a summary of the dataset group properties used in the ListDatasetGroups operation. To
* get the complete set of properties, call the DescribeDatasetGroup
* operation, and provide the DatasetGroupArn
.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DatasetGroupSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Resource Name (ARN) of the dataset group.
*
*/
private String datasetGroupArn;
/**
*
* The name of the dataset group.
*
*/
private String datasetGroupName;
/**
*
* When the dataset group was created.
*
*/
private java.util.Date creationTime;
/**
*
* When the dataset group was created or last updated from a call to the UpdateDatasetGroup
* operation. While the dataset group is being updated, LastModificationTime
is the current time of the
* ListDatasetGroups
call.
*
*/
private java.util.Date lastModificationTime;
/**
*
* The Amazon Resource Name (ARN) of the dataset group.
*
*
* @param datasetGroupArn
* The Amazon Resource Name (ARN) of the dataset group.
*/
public void setDatasetGroupArn(String datasetGroupArn) {
this.datasetGroupArn = datasetGroupArn;
}
/**
*
* The Amazon Resource Name (ARN) of the dataset group.
*
*
* @return The Amazon Resource Name (ARN) of the dataset group.
*/
public String getDatasetGroupArn() {
return this.datasetGroupArn;
}
/**
*
* The Amazon Resource Name (ARN) of the dataset group.
*
*
* @param datasetGroupArn
* The Amazon Resource Name (ARN) of the dataset group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetGroupSummary withDatasetGroupArn(String datasetGroupArn) {
setDatasetGroupArn(datasetGroupArn);
return this;
}
/**
*
* The name of the dataset group.
*
*
* @param datasetGroupName
* The name of the dataset group.
*/
public void setDatasetGroupName(String datasetGroupName) {
this.datasetGroupName = datasetGroupName;
}
/**
*
* The name of the dataset group.
*
*
* @return The name of the dataset group.
*/
public String getDatasetGroupName() {
return this.datasetGroupName;
}
/**
*
* The name of the dataset group.
*
*
* @param datasetGroupName
* The name of the dataset group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetGroupSummary withDatasetGroupName(String datasetGroupName) {
setDatasetGroupName(datasetGroupName);
return this;
}
/**
*
* When the dataset group was created.
*
*
* @param creationTime
* When the dataset group was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* When the dataset group was created.
*
*
* @return When the dataset group was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* When the dataset group was created.
*
*
* @param creationTime
* When the dataset group was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetGroupSummary withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* When the dataset group was created or last updated from a call to the UpdateDatasetGroup
* operation. While the dataset group is being updated, LastModificationTime
is the current time of the
* ListDatasetGroups
call.
*
*
* @param lastModificationTime
* When the dataset group was created or last updated from a call to the UpdateDatasetGroup
* operation. While the dataset group is being updated, LastModificationTime
is the current time
* of the ListDatasetGroups
call.
*/
public void setLastModificationTime(java.util.Date lastModificationTime) {
this.lastModificationTime = lastModificationTime;
}
/**
*
* When the dataset group was created or last updated from a call to the UpdateDatasetGroup
* operation. While the dataset group is being updated, LastModificationTime
is the current time of the
* ListDatasetGroups
call.
*
*
* @return When the dataset group was created or last updated from a call to the UpdateDatasetGroup
* operation. While the dataset group is being updated, LastModificationTime
is the current
* time of the ListDatasetGroups
call.
*/
public java.util.Date getLastModificationTime() {
return this.lastModificationTime;
}
/**
*
* When the dataset group was created or last updated from a call to the UpdateDatasetGroup
* operation. While the dataset group is being updated, LastModificationTime
is the current time of the
* ListDatasetGroups
call.
*
*
* @param lastModificationTime
* When the dataset group was created or last updated from a call to the UpdateDatasetGroup
* operation. While the dataset group is being updated, LastModificationTime
is the current time
* of the ListDatasetGroups
call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetGroupSummary withLastModificationTime(java.util.Date lastModificationTime) {
setLastModificationTime(lastModificationTime);
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 (getDatasetGroupArn() != null)
sb.append("DatasetGroupArn: ").append(getDatasetGroupArn()).append(",");
if (getDatasetGroupName() != null)
sb.append("DatasetGroupName: ").append(getDatasetGroupName()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getLastModificationTime() != null)
sb.append("LastModificationTime: ").append(getLastModificationTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DatasetGroupSummary == false)
return false;
DatasetGroupSummary other = (DatasetGroupSummary) obj;
if (other.getDatasetGroupArn() == null ^ this.getDatasetGroupArn() == null)
return false;
if (other.getDatasetGroupArn() != null && other.getDatasetGroupArn().equals(this.getDatasetGroupArn()) == false)
return false;
if (other.getDatasetGroupName() == null ^ this.getDatasetGroupName() == null)
return false;
if (other.getDatasetGroupName() != null && other.getDatasetGroupName().equals(this.getDatasetGroupName()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getLastModificationTime() == null ^ this.getLastModificationTime() == null)
return false;
if (other.getLastModificationTime() != null && other.getLastModificationTime().equals(this.getLastModificationTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDatasetGroupArn() == null) ? 0 : getDatasetGroupArn().hashCode());
hashCode = prime * hashCode + ((getDatasetGroupName() == null) ? 0 : getDatasetGroupName().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getLastModificationTime() == null) ? 0 : getLastModificationTime().hashCode());
return hashCode;
}
@Override
public DatasetGroupSummary clone() {
try {
return (DatasetGroupSummary) 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.forecast.model.transform.DatasetGroupSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}