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

com.amazonaws.services.lookoutforvision.model.ProjectMetadata Maven / Gradle / Ivy

/*
 * Copyright 2016-2021 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.lookoutforvision.model;

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

/**
 * 

* Metadata about an Amazon Lookout for Vision project. *

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

* The Amazon Resource Name (ARN) of the project. *

*/ private String projectArn; /** *

* The name of the project. *

*/ private String projectName; /** *

* The unix timestamp for the date and time that the project was created. *

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

* The Amazon Resource Name (ARN) of the project. *

* * @param projectArn * The Amazon Resource Name (ARN) of the project. */ public void setProjectArn(String projectArn) { this.projectArn = projectArn; } /** *

* The Amazon Resource Name (ARN) of the project. *

* * @return The Amazon Resource Name (ARN) of the project. */ public String getProjectArn() { return this.projectArn; } /** *

* The Amazon Resource Name (ARN) of the project. *

* * @param projectArn * The Amazon Resource Name (ARN) of the project. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectMetadata withProjectArn(String projectArn) { setProjectArn(projectArn); return this; } /** *

* The name of the project. *

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

* The name of the project. *

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

* The name of the project. *

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

* The unix timestamp for the date and time that the project was created. *

* * @param creationTimestamp * The unix timestamp for the date and time that the project was created. */ public void setCreationTimestamp(java.util.Date creationTimestamp) { this.creationTimestamp = creationTimestamp; } /** *

* The unix timestamp for the date and time that the project was created. *

* * @return The unix timestamp for the date and time that the project was created. */ public java.util.Date getCreationTimestamp() { return this.creationTimestamp; } /** *

* The unix timestamp for the date and time that the project was created. *

* * @param creationTimestamp * The unix timestamp for the date and time that the project was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectMetadata withCreationTimestamp(java.util.Date creationTimestamp) { setCreationTimestamp(creationTimestamp); 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 (getProjectArn() != null) sb.append("ProjectArn: ").append(getProjectArn()).append(","); if (getProjectName() != null) sb.append("ProjectName: ").append(getProjectName()).append(","); if (getCreationTimestamp() != null) sb.append("CreationTimestamp: ").append(getCreationTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProjectMetadata == false) return false; ProjectMetadata other = (ProjectMetadata) obj; if (other.getProjectArn() == null ^ this.getProjectArn() == null) return false; if (other.getProjectArn() != null && other.getProjectArn().equals(this.getProjectArn()) == false) return false; if (other.getProjectName() == null ^ this.getProjectName() == null) return false; if (other.getProjectName() != null && other.getProjectName().equals(this.getProjectName()) == false) return false; if (other.getCreationTimestamp() == null ^ this.getCreationTimestamp() == null) return false; if (other.getCreationTimestamp() != null && other.getCreationTimestamp().equals(this.getCreationTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProjectArn() == null) ? 0 : getProjectArn().hashCode()); hashCode = prime * hashCode + ((getProjectName() == null) ? 0 : getProjectName().hashCode()); hashCode = prime * hashCode + ((getCreationTimestamp() == null) ? 0 : getCreationTimestamp().hashCode()); return hashCode; } @Override public ProjectMetadata clone() { try { return (ProjectMetadata) 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.lookoutforvision.model.transform.ProjectMetadataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy