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

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

Go to download

The AWS Java SDK for AWS IoT 1-Click Projects module holds the client classes that are used for communicating with AWS IoT 1-Click Projects Service

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

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

/**
 * 

* An object providing summary information for a particular placement. *

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

* The name of the project containing the placement. *

*/ private String projectName; /** *

* The name of the placement being summarized. *

*/ private String placementName; /** *

* The date when the placement was originally 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 PlacementSummary withProjectName(String projectName) { setProjectName(projectName); return this; } /** *

* The name of the placement being summarized. *

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

* The name of the placement being summarized. *

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

* The name of the placement being summarized. *

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

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

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

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

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

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

* * @param createdDate * The date when the placement was originally created, in UNIX epoch time format. * @return Returns a reference to this object so that method calls can be chained together. */ public PlacementSummary 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 PlacementSummary 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 (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 PlacementSummary == false) return false; PlacementSummary other = (PlacementSummary) 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.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 + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode()); hashCode = prime * hashCode + ((getUpdatedDate() == null) ? 0 : getUpdatedDate().hashCode()); return hashCode; } @Override public PlacementSummary clone() { try { return (PlacementSummary) 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.PlacementSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy