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

com.amazonaws.services.support.model.TrustedAdvisorResourceDetail 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;

/**
 * 

* Contains information about a resource identified by a Trusted Advisor * check. *

*/ public class TrustedAdvisorResourceDetail implements Serializable { /** * The status code for the resource identified in the Trusted Advisor * check. */ private String status; /** * The AWS region in which the identified resource is located. */ private String region; /** * The unique identifier for the identified resource. */ private String resourceId; /** * Specifies whether the AWS resource was ignored by Trusted Advisor * because it was marked as suppressed by the user. */ private Boolean isSuppressed; /** * Additional information about the identified resource. The exact * metadata and its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. */ private com.amazonaws.internal.ListWithAutoConstructFlag metadata; /** * The status code for the resource identified in the Trusted Advisor * check. * * @return The status code for the resource identified in the Trusted Advisor * check. */ public String getStatus() { return status; } /** * The status code for the resource identified in the Trusted Advisor * check. * * @param status The status code for the resource identified in the Trusted Advisor * check. */ public void setStatus(String status) { this.status = status; } /** * The status code for the resource identified in the Trusted Advisor * check. *

* Returns a reference to this object so that method calls can be chained together. * * @param status The status code for the resource identified in the Trusted Advisor * check. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorResourceDetail withStatus(String status) { this.status = status; return this; } /** * The AWS region in which the identified resource is located. * * @return The AWS region in which the identified resource is located. */ public String getRegion() { return region; } /** * The AWS region in which the identified resource is located. * * @param region The AWS region in which the identified resource is located. */ public void setRegion(String region) { this.region = region; } /** * The AWS region in which the identified resource is located. *

* Returns a reference to this object so that method calls can be chained together. * * @param region The AWS region in which the identified resource is located. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorResourceDetail withRegion(String region) { this.region = region; return this; } /** * The unique identifier for the identified resource. * * @return The unique identifier for the identified resource. */ public String getResourceId() { return resourceId; } /** * The unique identifier for the identified resource. * * @param resourceId The unique identifier for the identified resource. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** * The unique identifier for the identified resource. *

* Returns a reference to this object so that method calls can be chained together. * * @param resourceId The unique identifier for the identified resource. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorResourceDetail withResourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * Specifies whether the AWS resource was ignored by Trusted Advisor * because it was marked as suppressed by the user. * * @return Specifies whether the AWS resource was ignored by Trusted Advisor * because it was marked as suppressed by the user. */ public Boolean isSuppressed() { return isSuppressed; } /** * Specifies whether the AWS resource was ignored by Trusted Advisor * because it was marked as suppressed by the user. * * @param isSuppressed Specifies whether the AWS resource was ignored by Trusted Advisor * because it was marked as suppressed by the user. */ public void setIsSuppressed(Boolean isSuppressed) { this.isSuppressed = isSuppressed; } /** * Specifies whether the AWS resource was ignored by Trusted Advisor * because it was marked as suppressed by the user. *

* Returns a reference to this object so that method calls can be chained together. * * @param isSuppressed Specifies whether the AWS resource was ignored by Trusted Advisor * because it was marked as suppressed by the user. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorResourceDetail withIsSuppressed(Boolean isSuppressed) { this.isSuppressed = isSuppressed; return this; } /** * Specifies whether the AWS resource was ignored by Trusted Advisor * because it was marked as suppressed by the user. * * @return Specifies whether the AWS resource was ignored by Trusted Advisor * because it was marked as suppressed by the user. */ public Boolean getIsSuppressed() { return isSuppressed; } /** * Additional information about the identified resource. The exact * metadata and its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. * * @return Additional information about the identified resource. The exact * metadata and its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. */ public java.util.List getMetadata() { if (metadata == null) { metadata = new com.amazonaws.internal.ListWithAutoConstructFlag(); metadata.setAutoConstruct(true); } return metadata; } /** * Additional information about the identified resource. The exact * metadata and its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. * * @param metadata Additional information about the identified resource. The exact * metadata and its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. */ 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; } /** * Additional information about the identified resource. The exact * metadata and its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. *

* Returns a reference to this object so that method calls can be chained together. * * @param metadata Additional information about the identified resource. The exact * metadata and its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorResourceDetail withMetadata(String... metadata) { if (getMetadata() == null) setMetadata(new java.util.ArrayList(metadata.length)); for (String value : metadata) { getMetadata().add(value); } return this; } /** * Additional information about the identified resource. The exact * metadata and its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. *

* Returns a reference to this object so that method calls can be chained together. * * @param metadata Additional information about the identified resource. The exact * metadata and its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. * * @return A reference to this updated object so that method calls can be chained * together. */ public TrustedAdvisorResourceDetail 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 (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getRegion() != null) sb.append("Region: " + getRegion() + ","); if (getResourceId() != null) sb.append("ResourceId: " + getResourceId() + ","); if (isSuppressed() != null) sb.append("IsSuppressed: " + isSuppressed() + ","); 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 + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); hashCode = prime * hashCode + ((isSuppressed() == null) ? 0 : isSuppressed().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 TrustedAdvisorResourceDetail == false) return false; TrustedAdvisorResourceDetail other = (TrustedAdvisorResourceDetail)obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.isSuppressed() == null ^ this.isSuppressed() == null) return false; if (other.isSuppressed() != null && other.isSuppressed().equals(this.isSuppressed()) == 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