com.amazonaws.services.iotdeviceadvisor.model.GetSuiteDefinitionResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-iotdeviceadvisor Show documentation
/*
* 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.iotdeviceadvisor.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetSuiteDefinitionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* Gets suite definition Id with GetSuiteDefinition API call.
*
*/
private String suiteDefinitionId;
/**
*
* The ARN of the suite definition.
*
*/
private String suiteDefinitionArn;
/**
*
* Gets suite definition version with GetSuiteDefinition API call.
*
*/
private String suiteDefinitionVersion;
/**
*
* Gets latest suite definition version with GetSuiteDefinition API call.
*
*/
private String latestVersion;
/**
*
* Gets the suite configuration with GetSuiteDefinition API call.
*
*/
private SuiteDefinitionConfiguration suiteDefinitionConfiguration;
/**
*
* Gets the timestamp of the time suite was created with GetSuiteDefinition API call.
*
*/
private java.util.Date createdAt;
/**
*
* Gets the timestamp of the time suite was modified with GetSuiteDefinition API call.
*
*/
private java.util.Date lastModifiedAt;
/**
*
* Tags attached to the suite definition.
*
*/
private java.util.Map tags;
/**
*
* Gets suite definition Id with GetSuiteDefinition API call.
*
*
* @param suiteDefinitionId
* Gets suite definition Id with GetSuiteDefinition API call.
*/
public void setSuiteDefinitionId(String suiteDefinitionId) {
this.suiteDefinitionId = suiteDefinitionId;
}
/**
*
* Gets suite definition Id with GetSuiteDefinition API call.
*
*
* @return Gets suite definition Id with GetSuiteDefinition API call.
*/
public String getSuiteDefinitionId() {
return this.suiteDefinitionId;
}
/**
*
* Gets suite definition Id with GetSuiteDefinition API call.
*
*
* @param suiteDefinitionId
* Gets suite definition Id with GetSuiteDefinition API call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSuiteDefinitionResult withSuiteDefinitionId(String suiteDefinitionId) {
setSuiteDefinitionId(suiteDefinitionId);
return this;
}
/**
*
* The ARN of the suite definition.
*
*
* @param suiteDefinitionArn
* The ARN of the suite definition.
*/
public void setSuiteDefinitionArn(String suiteDefinitionArn) {
this.suiteDefinitionArn = suiteDefinitionArn;
}
/**
*
* The ARN of the suite definition.
*
*
* @return The ARN of the suite definition.
*/
public String getSuiteDefinitionArn() {
return this.suiteDefinitionArn;
}
/**
*
* The ARN of the suite definition.
*
*
* @param suiteDefinitionArn
* The ARN of the suite definition.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSuiteDefinitionResult withSuiteDefinitionArn(String suiteDefinitionArn) {
setSuiteDefinitionArn(suiteDefinitionArn);
return this;
}
/**
*
* Gets suite definition version with GetSuiteDefinition API call.
*
*
* @param suiteDefinitionVersion
* Gets suite definition version with GetSuiteDefinition API call.
*/
public void setSuiteDefinitionVersion(String suiteDefinitionVersion) {
this.suiteDefinitionVersion = suiteDefinitionVersion;
}
/**
*
* Gets suite definition version with GetSuiteDefinition API call.
*
*
* @return Gets suite definition version with GetSuiteDefinition API call.
*/
public String getSuiteDefinitionVersion() {
return this.suiteDefinitionVersion;
}
/**
*
* Gets suite definition version with GetSuiteDefinition API call.
*
*
* @param suiteDefinitionVersion
* Gets suite definition version with GetSuiteDefinition API call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSuiteDefinitionResult withSuiteDefinitionVersion(String suiteDefinitionVersion) {
setSuiteDefinitionVersion(suiteDefinitionVersion);
return this;
}
/**
*
* Gets latest suite definition version with GetSuiteDefinition API call.
*
*
* @param latestVersion
* Gets latest suite definition version with GetSuiteDefinition API call.
*/
public void setLatestVersion(String latestVersion) {
this.latestVersion = latestVersion;
}
/**
*
* Gets latest suite definition version with GetSuiteDefinition API call.
*
*
* @return Gets latest suite definition version with GetSuiteDefinition API call.
*/
public String getLatestVersion() {
return this.latestVersion;
}
/**
*
* Gets latest suite definition version with GetSuiteDefinition API call.
*
*
* @param latestVersion
* Gets latest suite definition version with GetSuiteDefinition API call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSuiteDefinitionResult withLatestVersion(String latestVersion) {
setLatestVersion(latestVersion);
return this;
}
/**
*
* Gets the suite configuration with GetSuiteDefinition API call.
*
*
* @param suiteDefinitionConfiguration
* Gets the suite configuration with GetSuiteDefinition API call.
*/
public void setSuiteDefinitionConfiguration(SuiteDefinitionConfiguration suiteDefinitionConfiguration) {
this.suiteDefinitionConfiguration = suiteDefinitionConfiguration;
}
/**
*
* Gets the suite configuration with GetSuiteDefinition API call.
*
*
* @return Gets the suite configuration with GetSuiteDefinition API call.
*/
public SuiteDefinitionConfiguration getSuiteDefinitionConfiguration() {
return this.suiteDefinitionConfiguration;
}
/**
*
* Gets the suite configuration with GetSuiteDefinition API call.
*
*
* @param suiteDefinitionConfiguration
* Gets the suite configuration with GetSuiteDefinition API call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSuiteDefinitionResult withSuiteDefinitionConfiguration(SuiteDefinitionConfiguration suiteDefinitionConfiguration) {
setSuiteDefinitionConfiguration(suiteDefinitionConfiguration);
return this;
}
/**
*
* Gets the timestamp of the time suite was created with GetSuiteDefinition API call.
*
*
* @param createdAt
* Gets the timestamp of the time suite was created with GetSuiteDefinition API call.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* Gets the timestamp of the time suite was created with GetSuiteDefinition API call.
*
*
* @return Gets the timestamp of the time suite was created with GetSuiteDefinition API call.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* Gets the timestamp of the time suite was created with GetSuiteDefinition API call.
*
*
* @param createdAt
* Gets the timestamp of the time suite was created with GetSuiteDefinition API call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSuiteDefinitionResult withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* Gets the timestamp of the time suite was modified with GetSuiteDefinition API call.
*
*
* @param lastModifiedAt
* Gets the timestamp of the time suite was modified with GetSuiteDefinition API call.
*/
public void setLastModifiedAt(java.util.Date lastModifiedAt) {
this.lastModifiedAt = lastModifiedAt;
}
/**
*
* Gets the timestamp of the time suite was modified with GetSuiteDefinition API call.
*
*
* @return Gets the timestamp of the time suite was modified with GetSuiteDefinition API call.
*/
public java.util.Date getLastModifiedAt() {
return this.lastModifiedAt;
}
/**
*
* Gets the timestamp of the time suite was modified with GetSuiteDefinition API call.
*
*
* @param lastModifiedAt
* Gets the timestamp of the time suite was modified with GetSuiteDefinition API call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSuiteDefinitionResult withLastModifiedAt(java.util.Date lastModifiedAt) {
setLastModifiedAt(lastModifiedAt);
return this;
}
/**
*
* Tags attached to the suite definition.
*
*
* @return Tags attached to the suite definition.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* Tags attached to the suite definition.
*
*
* @param tags
* Tags attached to the suite definition.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* Tags attached to the suite definition.
*
*
* @param tags
* Tags attached to the suite definition.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSuiteDefinitionResult withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see GetSuiteDefinitionResult#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public GetSuiteDefinitionResult addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSuiteDefinitionResult clearTagsEntries() {
this.tags = null;
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 (getSuiteDefinitionId() != null)
sb.append("SuiteDefinitionId: ").append(getSuiteDefinitionId()).append(",");
if (getSuiteDefinitionArn() != null)
sb.append("SuiteDefinitionArn: ").append(getSuiteDefinitionArn()).append(",");
if (getSuiteDefinitionVersion() != null)
sb.append("SuiteDefinitionVersion: ").append(getSuiteDefinitionVersion()).append(",");
if (getLatestVersion() != null)
sb.append("LatestVersion: ").append(getLatestVersion()).append(",");
if (getSuiteDefinitionConfiguration() != null)
sb.append("SuiteDefinitionConfiguration: ").append(getSuiteDefinitionConfiguration()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getLastModifiedAt() != null)
sb.append("LastModifiedAt: ").append(getLastModifiedAt()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetSuiteDefinitionResult == false)
return false;
GetSuiteDefinitionResult other = (GetSuiteDefinitionResult) obj;
if (other.getSuiteDefinitionId() == null ^ this.getSuiteDefinitionId() == null)
return false;
if (other.getSuiteDefinitionId() != null && other.getSuiteDefinitionId().equals(this.getSuiteDefinitionId()) == false)
return false;
if (other.getSuiteDefinitionArn() == null ^ this.getSuiteDefinitionArn() == null)
return false;
if (other.getSuiteDefinitionArn() != null && other.getSuiteDefinitionArn().equals(this.getSuiteDefinitionArn()) == false)
return false;
if (other.getSuiteDefinitionVersion() == null ^ this.getSuiteDefinitionVersion() == null)
return false;
if (other.getSuiteDefinitionVersion() != null && other.getSuiteDefinitionVersion().equals(this.getSuiteDefinitionVersion()) == false)
return false;
if (other.getLatestVersion() == null ^ this.getLatestVersion() == null)
return false;
if (other.getLatestVersion() != null && other.getLatestVersion().equals(this.getLatestVersion()) == false)
return false;
if (other.getSuiteDefinitionConfiguration() == null ^ this.getSuiteDefinitionConfiguration() == null)
return false;
if (other.getSuiteDefinitionConfiguration() != null && other.getSuiteDefinitionConfiguration().equals(this.getSuiteDefinitionConfiguration()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getLastModifiedAt() == null ^ this.getLastModifiedAt() == null)
return false;
if (other.getLastModifiedAt() != null && other.getLastModifiedAt().equals(this.getLastModifiedAt()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSuiteDefinitionId() == null) ? 0 : getSuiteDefinitionId().hashCode());
hashCode = prime * hashCode + ((getSuiteDefinitionArn() == null) ? 0 : getSuiteDefinitionArn().hashCode());
hashCode = prime * hashCode + ((getSuiteDefinitionVersion() == null) ? 0 : getSuiteDefinitionVersion().hashCode());
hashCode = prime * hashCode + ((getLatestVersion() == null) ? 0 : getLatestVersion().hashCode());
hashCode = prime * hashCode + ((getSuiteDefinitionConfiguration() == null) ? 0 : getSuiteDefinitionConfiguration().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getLastModifiedAt() == null) ? 0 : getLastModifiedAt().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
return hashCode;
}
@Override
public GetSuiteDefinitionResult clone() {
try {
return (GetSuiteDefinitionResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}