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

com.amazonaws.services.iot1clickprojects.model.PlacementDescription Maven / Gradle / Ivy

/*
 * 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.iot1clickprojects.model;

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

/**
 * 

* An object describing a project's placement. *

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

* The name of the project containing the placement. *

*/ private String projectName; /** *

* The name of the placement. *

*/ private String placementName; /** *

* The user-defined attributes associated with the placement. *

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

* The date when the placement was initially created, in UNIX epoch time format. *

*/ private java.util.Date createdDate; /** *

* The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, then * createdDate and updatedDate are the same. *

*/ private java.util.Date updatedDate; /** *

* The name of the project containing the placement. *

* * @param projectName * The name of the project containing the placement. */ public void setProjectName(String projectName) { this.projectName = projectName; } /** *

* The name of the project containing the placement. *

* * @return The name of the project containing the placement. */ public String getProjectName() { return this.projectName; } /** *

* The name of the project containing the placement. *

* * @param projectName * The name of the project containing the placement. * @return Returns a reference to this object so that method calls can be chained together. */ public PlacementDescription withProjectName(String projectName) { setProjectName(projectName); return this; } /** *

* The name of the placement. *

* * @param placementName * The name of the placement. */ public void setPlacementName(String placementName) { this.placementName = placementName; } /** *

* The name of the placement. *

* * @return The name of the placement. */ public String getPlacementName() { return this.placementName; } /** *

* The name of the placement. *

* * @param placementName * The name of the placement. * @return Returns a reference to this object so that method calls can be chained together. */ public PlacementDescription withPlacementName(String placementName) { setPlacementName(placementName); return this; } /** *

* The user-defined attributes associated with the placement. *

* * @return The user-defined attributes associated with the placement. */ public java.util.Map getAttributes() { return attributes; } /** *

* The user-defined attributes associated with the placement. *

* * @param attributes * The user-defined attributes associated with the placement. */ public void setAttributes(java.util.Map attributes) { this.attributes = attributes; } /** *

* The user-defined attributes associated with the placement. *

* * @param attributes * The user-defined attributes associated with the placement. * @return Returns a reference to this object so that method calls can be chained together. */ public PlacementDescription withAttributes(java.util.Map attributes) { setAttributes(attributes); return this; } /** * Add a single Attributes entry * * @see PlacementDescription#withAttributes * @returns a reference to this object so that method calls can be chained together. */ public PlacementDescription addAttributesEntry(String key, String value) { if (null == this.attributes) { this.attributes = new java.util.HashMap(); } if (this.attributes.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.attributes.put(key, value); return this; } /** * Removes all the entries added into Attributes. * * @return Returns a reference to this object so that method calls can be chained together. */ public PlacementDescription clearAttributesEntries() { this.attributes = null; return this; } /** *

* The date when the placement was initially created, in UNIX epoch time format. *

* * @param createdDate * The date when the placement was initially created, in UNIX epoch time format. */ public void setCreatedDate(java.util.Date createdDate) { this.createdDate = createdDate; } /** *

* The date when the placement was initially created, in UNIX epoch time format. *

* * @return The date when the placement was initially created, in UNIX epoch time format. */ public java.util.Date getCreatedDate() { return this.createdDate; } /** *

* The date when the placement was initially created, in UNIX epoch time format. *

* * @param createdDate * The date when the placement was initially created, in UNIX epoch time format. * @return Returns a reference to this object so that method calls can be chained together. */ public PlacementDescription withCreatedDate(java.util.Date createdDate) { setCreatedDate(createdDate); return this; } /** *

* The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, then * createdDate and updatedDate are the same. *

* * @param updatedDate * The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, * then createdDate and updatedDate are the same. */ public void setUpdatedDate(java.util.Date updatedDate) { this.updatedDate = updatedDate; } /** *

* The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, then * createdDate and updatedDate are the same. *

* * @return The date when the placement was last updated, in UNIX epoch time format. If the placement was not * updated, then createdDate and updatedDate are the same. */ public java.util.Date getUpdatedDate() { return this.updatedDate; } /** *

* The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, then * createdDate and updatedDate are the same. *

* * @param updatedDate * The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, * then createdDate and updatedDate are the same. * @return Returns a reference to this object so that method calls can be chained together. */ public PlacementDescription withUpdatedDate(java.util.Date updatedDate) { setUpdatedDate(updatedDate); 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 (getProjectName() != null) sb.append("ProjectName: ").append(getProjectName()).append(","); if (getPlacementName() != null) sb.append("PlacementName: ").append(getPlacementName()).append(","); if (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getCreatedDate() != null) sb.append("CreatedDate: ").append(getCreatedDate()).append(","); if (getUpdatedDate() != null) sb.append("UpdatedDate: ").append(getUpdatedDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PlacementDescription == false) return false; PlacementDescription other = (PlacementDescription) obj; if (other.getProjectName() == null ^ this.getProjectName() == null) return false; if (other.getProjectName() != null && other.getProjectName().equals(this.getProjectName()) == false) return false; if (other.getPlacementName() == null ^ this.getPlacementName() == null) return false; if (other.getPlacementName() != null && other.getPlacementName().equals(this.getPlacementName()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getCreatedDate() == null ^ this.getCreatedDate() == null) return false; if (other.getCreatedDate() != null && other.getCreatedDate().equals(this.getCreatedDate()) == false) return false; if (other.getUpdatedDate() == null ^ this.getUpdatedDate() == null) return false; if (other.getUpdatedDate() != null && other.getUpdatedDate().equals(this.getUpdatedDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProjectName() == null) ? 0 : getProjectName().hashCode()); hashCode = prime * hashCode + ((getPlacementName() == null) ? 0 : getPlacementName().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode()); hashCode = prime * hashCode + ((getUpdatedDate() == null) ? 0 : getUpdatedDate().hashCode()); return hashCode; } @Override public PlacementDescription clone() { try { return (PlacementDescription) 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.iot1clickprojects.model.transform.PlacementDescriptionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy