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

com.amazonaws.services.ssmsap.model.ComponentSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Systems Manager for SAP module holds the client classes that are used for communicating with AWS Systems Manager for SAP Service

There is a newer version: 1.12.778
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.ssmsap.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The summary of the component. *

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

* The ID of the application. *

*/ private String applicationId; /** *

* The ID of the component. *

*/ private String componentId; /** *

* The type of the component. *

*/ private String componentType; /** *

* The tags of the component. *

*/ private java.util.Map tags; /** *

* The Amazon Resource Name (ARN) of the component summary. *

*/ private String arn; /** *

* The ID of the application. *

* * @param applicationId * The ID of the application. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** *

* The ID of the application. *

* * @return The ID of the application. */ public String getApplicationId() { return this.applicationId; } /** *

* The ID of the application. *

* * @param applicationId * The ID of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentSummary withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** *

* The ID of the component. *

* * @param componentId * The ID of the component. */ public void setComponentId(String componentId) { this.componentId = componentId; } /** *

* The ID of the component. *

* * @return The ID of the component. */ public String getComponentId() { return this.componentId; } /** *

* The ID of the component. *

* * @param componentId * The ID of the component. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentSummary withComponentId(String componentId) { setComponentId(componentId); return this; } /** *

* The type of the component. *

* * @param componentType * The type of the component. * @see ComponentType */ public void setComponentType(String componentType) { this.componentType = componentType; } /** *

* The type of the component. *

* * @return The type of the component. * @see ComponentType */ public String getComponentType() { return this.componentType; } /** *

* The type of the component. *

* * @param componentType * The type of the component. * @return Returns a reference to this object so that method calls can be chained together. * @see ComponentType */ public ComponentSummary withComponentType(String componentType) { setComponentType(componentType); return this; } /** *

* The type of the component. *

* * @param componentType * The type of the component. * @return Returns a reference to this object so that method calls can be chained together. * @see ComponentType */ public ComponentSummary withComponentType(ComponentType componentType) { this.componentType = componentType.toString(); return this; } /** *

* The tags of the component. *

* * @return The tags of the component. */ public java.util.Map getTags() { return tags; } /** *

* The tags of the component. *

* * @param tags * The tags of the component. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* The tags of the component. *

* * @param tags * The tags of the component. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentSummary withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see ComponentSummary#withTags * @returns a reference to this object so that method calls can be chained together. */ public ComponentSummary 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 ComponentSummary clearTagsEntries() { this.tags = null; return this; } /** *

* The Amazon Resource Name (ARN) of the component summary. *

* * @param arn * The Amazon Resource Name (ARN) of the component summary. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the component summary. *

* * @return The Amazon Resource Name (ARN) of the component summary. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the component summary. *

* * @param arn * The Amazon Resource Name (ARN) of the component summary. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentSummary withArn(String arn) { setArn(arn); 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 (getApplicationId() != null) sb.append("ApplicationId: ").append(getApplicationId()).append(","); if (getComponentId() != null) sb.append("ComponentId: ").append(getComponentId()).append(","); if (getComponentType() != null) sb.append("ComponentType: ").append(getComponentType()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ComponentSummary == false) return false; ComponentSummary other = (ComponentSummary) obj; if (other.getApplicationId() == null ^ this.getApplicationId() == null) return false; if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == false) return false; if (other.getComponentId() == null ^ this.getComponentId() == null) return false; if (other.getComponentId() != null && other.getComponentId().equals(this.getComponentId()) == false) return false; if (other.getComponentType() == null ^ this.getComponentType() == null) return false; if (other.getComponentType() != null && other.getComponentType().equals(this.getComponentType()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationId() == null) ? 0 : getApplicationId().hashCode()); hashCode = prime * hashCode + ((getComponentId() == null) ? 0 : getComponentId().hashCode()); hashCode = prime * hashCode + ((getComponentType() == null) ? 0 : getComponentType().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); return hashCode; } @Override public ComponentSummary clone() { try { return (ComponentSummary) 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.ssmsap.model.transform.ComponentSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy