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

com.amazonaws.services.support.model.TrustedAdvisorCheckDescription Maven / Gradle / Ivy

/*
 * Copyright 2010-2014 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.support.model;

import java.io.Serializable;

/**
 * 

* The description and metadata for a Trusted Advisor check. *

*/ public class TrustedAdvisorCheckDescription implements Serializable { /** * The unique identifier for the Trusted Advisor check. */ private String id; /** * The display name for the Trusted Advisor check. */ private String name; /** * The description of the Trusted Advisor check, which includes the alert * criteria and recommended actions (contains HTML markup). */ private String description; /** * The category of the Trusted Advisor check. */ private String category; /** * The column headings for the data returned by the Trusted Advisor * check. The order of the headings corresponds to the order of the data * in the Metadata element of the * TrustedAdvisorResourceDetail for the check. */ private com.amazonaws.internal.ListWithAutoConstructFlag metadata; /** * The unique identifier for the Trusted Advisor check. * * @return The unique identifier for the Trusted Advisor check. */ public String getId() { return id; } /** * The unique identifier for the Trusted Advisor check. * * @param id The unique identifier for the Trusted Advisor check. */ public void setId(String id) { this.id = id; } /** * The unique identifier for the Trusted Advisor check. *

* Returns a reference to this object so that method calls can be chained together. * * @param id The unique identifier for the Trusted Advisor check. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorCheckDescription withId(String id) { this.id = id; return this; } /** * The display name for the Trusted Advisor check. * * @return The display name for the Trusted Advisor check. */ public String getName() { return name; } /** * The display name for the Trusted Advisor check. * * @param name The display name for the Trusted Advisor check. */ public void setName(String name) { this.name = name; } /** * The display name for the Trusted Advisor check. *

* Returns a reference to this object so that method calls can be chained together. * * @param name The display name for the Trusted Advisor check. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorCheckDescription withName(String name) { this.name = name; return this; } /** * The description of the Trusted Advisor check, which includes the alert * criteria and recommended actions (contains HTML markup). * * @return The description of the Trusted Advisor check, which includes the alert * criteria and recommended actions (contains HTML markup). */ public String getDescription() { return description; } /** * The description of the Trusted Advisor check, which includes the alert * criteria and recommended actions (contains HTML markup). * * @param description The description of the Trusted Advisor check, which includes the alert * criteria and recommended actions (contains HTML markup). */ public void setDescription(String description) { this.description = description; } /** * The description of the Trusted Advisor check, which includes the alert * criteria and recommended actions (contains HTML markup). *

* Returns a reference to this object so that method calls can be chained together. * * @param description The description of the Trusted Advisor check, which includes the alert * criteria and recommended actions (contains HTML markup). * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorCheckDescription withDescription(String description) { this.description = description; return this; } /** * The category of the Trusted Advisor check. * * @return The category of the Trusted Advisor check. */ public String getCategory() { return category; } /** * The category of the Trusted Advisor check. * * @param category The category of the Trusted Advisor check. */ public void setCategory(String category) { this.category = category; } /** * The category of the Trusted Advisor check. *

* Returns a reference to this object so that method calls can be chained together. * * @param category The category of the Trusted Advisor check. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorCheckDescription withCategory(String category) { this.category = category; return this; } /** * The column headings for the data returned by the Trusted Advisor * check. The order of the headings corresponds to the order of the data * in the Metadata element of the * TrustedAdvisorResourceDetail for the check. * * @return The column headings for the data returned by the Trusted Advisor * check. The order of the headings corresponds to the order of the data * in the Metadata element of the * TrustedAdvisorResourceDetail for the check. */ public java.util.List getMetadata() { if (metadata == null) { metadata = new com.amazonaws.internal.ListWithAutoConstructFlag(); metadata.setAutoConstruct(true); } return metadata; } /** * The column headings for the data returned by the Trusted Advisor * check. The order of the headings corresponds to the order of the data * in the Metadata element of the * TrustedAdvisorResourceDetail for the check. * * @param metadata The column headings for the data returned by the Trusted Advisor * check. The order of the headings corresponds to the order of the data * in the Metadata element of the * TrustedAdvisorResourceDetail for the check. */ public void setMetadata(java.util.Collection metadata) { if (metadata == null) { this.metadata = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag metadataCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(metadata.size()); metadataCopy.addAll(metadata); this.metadata = metadataCopy; } /** * The column headings for the data returned by the Trusted Advisor * check. The order of the headings corresponds to the order of the data * in the Metadata element of the * TrustedAdvisorResourceDetail for the check. *

* Returns a reference to this object so that method calls can be chained together. * * @param metadata The column headings for the data returned by the Trusted Advisor * check. The order of the headings corresponds to the order of the data * in the Metadata element of the * TrustedAdvisorResourceDetail for the check. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorCheckDescription withMetadata(String... metadata) { if (getMetadata() == null) setMetadata(new java.util.ArrayList(metadata.length)); for (String value : metadata) { getMetadata().add(value); } return this; } /** * The column headings for the data returned by the Trusted Advisor * check. The order of the headings corresponds to the order of the data * in the Metadata element of the * TrustedAdvisorResourceDetail for the check. *

* Returns a reference to this object so that method calls can be chained together. * * @param metadata The column headings for the data returned by the Trusted Advisor * check. The order of the headings corresponds to the order of the data * in the Metadata element of the * TrustedAdvisorResourceDetail for the check. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorCheckDescription withMetadata(java.util.Collection metadata) { if (metadata == null) { this.metadata = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag metadataCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(metadata.size()); metadataCopy.addAll(metadata); this.metadata = metadataCopy; } return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getId() != null) sb.append("Id: " + getId() + ","); if (getName() != null) sb.append("Name: " + getName() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getCategory() != null) sb.append("Category: " + getCategory() + ","); if (getMetadata() != null) sb.append("Metadata: " + getMetadata() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCategory() == null) ? 0 : getCategory().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TrustedAdvisorCheckDescription == false) return false; TrustedAdvisorCheckDescription other = (TrustedAdvisorCheckDescription)obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getCategory() == null ^ this.getCategory() == null) return false; if (other.getCategory() != null && other.getCategory().equals(this.getCategory()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy