/* * Copyright 2018-2023 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.simplesystemsmanagement.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Operational metadata for an application in Application Manager. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OpsMetadata implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the Application Manager application. *
*/ private String resourceId; /** ** The Amazon Resource Name (ARN) of the OpsMetadata Object or blob. *
*/ private String opsMetadataArn; /** ** The date the OpsMetadata object was last updated. *
*/ private java.util.Date lastModifiedDate; /** ** The user name who last updated the OpsMetadata object. *
*/ private String lastModifiedUser; /** ** The date the OpsMetadata objects was created. *
*/ private java.util.Date creationDate; /** ** The ID of the Application Manager application. *
* * @param resourceId * The ID of the Application Manager application. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** ** The ID of the Application Manager application. *
* * @return The ID of the Application Manager application. */ public String getResourceId() { return this.resourceId; } /** ** The ID of the Application Manager application. *
* * @param resourceId * The ID of the Application Manager application. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsMetadata withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** ** The Amazon Resource Name (ARN) of the OpsMetadata Object or blob. *
* * @param opsMetadataArn * The Amazon Resource Name (ARN) of the OpsMetadata Object or blob. */ public void setOpsMetadataArn(String opsMetadataArn) { this.opsMetadataArn = opsMetadataArn; } /** ** The Amazon Resource Name (ARN) of the OpsMetadata Object or blob. *
* * @return The Amazon Resource Name (ARN) of the OpsMetadata Object or blob. */ public String getOpsMetadataArn() { return this.opsMetadataArn; } /** ** The Amazon Resource Name (ARN) of the OpsMetadata Object or blob. *
* * @param opsMetadataArn * The Amazon Resource Name (ARN) of the OpsMetadata Object or blob. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsMetadata withOpsMetadataArn(String opsMetadataArn) { setOpsMetadataArn(opsMetadataArn); return this; } /** ** The date the OpsMetadata object was last updated. *
* * @param lastModifiedDate * The date the OpsMetadata object was last updated. */ public void setLastModifiedDate(java.util.Date lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } /** ** The date the OpsMetadata object was last updated. *
* * @return The date the OpsMetadata object was last updated. */ public java.util.Date getLastModifiedDate() { return this.lastModifiedDate; } /** ** The date the OpsMetadata object was last updated. *
* * @param lastModifiedDate * The date the OpsMetadata object was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsMetadata withLastModifiedDate(java.util.Date lastModifiedDate) { setLastModifiedDate(lastModifiedDate); return this; } /** ** The user name who last updated the OpsMetadata object. *
* * @param lastModifiedUser * The user name who last updated the OpsMetadata object. */ public void setLastModifiedUser(String lastModifiedUser) { this.lastModifiedUser = lastModifiedUser; } /** ** The user name who last updated the OpsMetadata object. *
* * @return The user name who last updated the OpsMetadata object. */ public String getLastModifiedUser() { return this.lastModifiedUser; } /** ** The user name who last updated the OpsMetadata object. *
* * @param lastModifiedUser * The user name who last updated the OpsMetadata object. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsMetadata withLastModifiedUser(String lastModifiedUser) { setLastModifiedUser(lastModifiedUser); return this; } /** ** The date the OpsMetadata objects was created. *
* * @param creationDate * The date the OpsMetadata objects was created. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** ** The date the OpsMetadata objects was created. *
* * @return The date the OpsMetadata objects was created. */ public java.util.Date getCreationDate() { return this.creationDate; } /** ** The date the OpsMetadata objects was created. *
* * @param creationDate * The date the OpsMetadata objects was created. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsMetadata withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); 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 (getResourceId() != null) sb.append("ResourceId: ").append(getResourceId()).append(","); if (getOpsMetadataArn() != null) sb.append("OpsMetadataArn: ").append(getOpsMetadataArn()).append(","); if (getLastModifiedDate() != null) sb.append("LastModifiedDate: ").append(getLastModifiedDate()).append(","); if (getLastModifiedUser() != null) sb.append("LastModifiedUser: ").append(getLastModifiedUser()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OpsMetadata == false) return false; OpsMetadata other = (OpsMetadata) obj; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getOpsMetadataArn() == null ^ this.getOpsMetadataArn() == null) return false; if (other.getOpsMetadataArn() != null && other.getOpsMetadataArn().equals(this.getOpsMetadataArn()) == false) return false; if (other.getLastModifiedDate() == null ^ this.getLastModifiedDate() == null) return false; if (other.getLastModifiedDate() != null && other.getLastModifiedDate().equals(this.getLastModifiedDate()) == false) return false; if (other.getLastModifiedUser() == null ^ this.getLastModifiedUser() == null) return false; if (other.getLastModifiedUser() != null && other.getLastModifiedUser().equals(this.getLastModifiedUser()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); hashCode = prime * hashCode + ((getOpsMetadataArn() == null) ? 0 : getOpsMetadataArn().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedUser() == null) ? 0 : getLastModifiedUser().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); return hashCode; } @Override public OpsMetadata clone() { try { return (OpsMetadata) 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.simplesystemsmanagement.model.transform.OpsMetadataMarshaller.getInstance().marshall(this, protocolMarshaller); } }