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

com.amazonaws.services.identitymanagement.model.ServerCertificateMetadata Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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.identitymanagement.model;

import java.io.Serializable;

/**
 * 

* Contains information about a server certificate without its certificate body, * certificate chain, and private key. *

*

* This data type is used as a response element in the * UploadServerCertificate and ListServerCertificates actions. *

*/ public class ServerCertificateMetadata implements Serializable, Cloneable { /** *

* The path to the server certificate. For more information about paths, see * IAM Identifiers in the Using IAM guide. *

*/ private String path; /** *

* The name that identifies the server certificate. *

*/ private String serverCertificateName; /** *

* The stable and unique string identifying the server certificate. For more * information about IDs, see IAM Identifiers in the Using IAM guide. *

*/ private String serverCertificateId; /** *

* The Amazon Resource Name (ARN) specifying the server certificate. For * more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide. *

*/ private String arn; /** *

* The date when the server certificate was uploaded. *

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

* The date on which the certificate is set to expire. *

*/ private java.util.Date expiration; /** * Default constructor for ServerCertificateMetadata object. Callers should * use the setter or fluent setter (with...) methods to initialize the * object after creating it. */ public ServerCertificateMetadata() { } /** * Constructs a new ServerCertificateMetadata object. Callers should use the * setter or fluent setter (with...) methods to initialize any additional * object members. * * @param path * The path to the server certificate. For more information about * paths, see IAM Identifiers in the Using IAM guide. * @param serverCertificateName * The name that identifies the server certificate. * @param serverCertificateId * The stable and unique string identifying the server certificate. * For more information about IDs, see IAM Identifiers in the Using IAM guide. * @param arn * The Amazon Resource Name (ARN) specifying the server certificate. * For more information about ARNs and how to use them in policies, * see IAM Identifiers in the Using IAM guide. */ public ServerCertificateMetadata(String path, String serverCertificateName, String serverCertificateId, String arn) { setPath(path); setServerCertificateName(serverCertificateName); setServerCertificateId(serverCertificateId); setArn(arn); } /** *

* The path to the server certificate. For more information about paths, see * IAM Identifiers in the Using IAM guide. *

* * @param path * The path to the server certificate. For more information about * paths, see IAM Identifiers in the Using IAM guide. */ public void setPath(String path) { this.path = path; } /** *

* The path to the server certificate. For more information about paths, see * IAM Identifiers in the Using IAM guide. *

* * @return The path to the server certificate. For more information about * paths, see IAM Identifiers in the Using IAM guide. */ public String getPath() { return this.path; } /** *

* The path to the server certificate. For more information about paths, see * IAM Identifiers in the Using IAM guide. *

* * @param path * The path to the server certificate. For more information about * paths, see IAM Identifiers in the Using IAM guide. * @return Returns a reference to this object so that method calls can be * chained together. */ public ServerCertificateMetadata withPath(String path) { setPath(path); return this; } /** *

* The name that identifies the server certificate. *

* * @param serverCertificateName * The name that identifies the server certificate. */ public void setServerCertificateName(String serverCertificateName) { this.serverCertificateName = serverCertificateName; } /** *

* The name that identifies the server certificate. *

* * @return The name that identifies the server certificate. */ public String getServerCertificateName() { return this.serverCertificateName; } /** *

* The name that identifies the server certificate. *

* * @param serverCertificateName * The name that identifies the server certificate. * @return Returns a reference to this object so that method calls can be * chained together. */ public ServerCertificateMetadata withServerCertificateName( String serverCertificateName) { setServerCertificateName(serverCertificateName); return this; } /** *

* The stable and unique string identifying the server certificate. For more * information about IDs, see IAM Identifiers in the Using IAM guide. *

* * @param serverCertificateId * The stable and unique string identifying the server certificate. * For more information about IDs, see IAM Identifiers in the Using IAM guide. */ public void setServerCertificateId(String serverCertificateId) { this.serverCertificateId = serverCertificateId; } /** *

* The stable and unique string identifying the server certificate. For more * information about IDs, see IAM Identifiers in the Using IAM guide. *

* * @return The stable and unique string identifying the server certificate. * For more information about IDs, see IAM Identifiers in the Using IAM guide. */ public String getServerCertificateId() { return this.serverCertificateId; } /** *

* The stable and unique string identifying the server certificate. For more * information about IDs, see IAM Identifiers in the Using IAM guide. *

* * @param serverCertificateId * The stable and unique string identifying the server certificate. * For more information about IDs, see IAM Identifiers in the Using IAM guide. * @return Returns a reference to this object so that method calls can be * chained together. */ public ServerCertificateMetadata withServerCertificateId( String serverCertificateId) { setServerCertificateId(serverCertificateId); return this; } /** *

* The Amazon Resource Name (ARN) specifying the server certificate. For * more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide. *

* * @param arn * The Amazon Resource Name (ARN) specifying the server certificate. * For more information about ARNs and how to use them in policies, * see IAM Identifiers in the Using IAM guide. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) specifying the server certificate. For * more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide. *

* * @return The Amazon Resource Name (ARN) specifying the server certificate. * For more information about ARNs and how to use them in policies, * see IAM Identifiers in the Using IAM guide. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) specifying the server certificate. For * more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide. *

* * @param arn * The Amazon Resource Name (ARN) specifying the server certificate. * For more information about ARNs and how to use them in policies, * see IAM Identifiers in the Using IAM guide. * @return Returns a reference to this object so that method calls can be * chained together. */ public ServerCertificateMetadata withArn(String arn) { setArn(arn); return this; } /** *

* The date when the server certificate was uploaded. *

* * @param uploadDate * The date when the server certificate was uploaded. */ public void setUploadDate(java.util.Date uploadDate) { this.uploadDate = uploadDate; } /** *

* The date when the server certificate was uploaded. *

* * @return The date when the server certificate was uploaded. */ public java.util.Date getUploadDate() { return this.uploadDate; } /** *

* The date when the server certificate was uploaded. *

* * @param uploadDate * The date when the server certificate was uploaded. * @return Returns a reference to this object so that method calls can be * chained together. */ public ServerCertificateMetadata withUploadDate(java.util.Date uploadDate) { setUploadDate(uploadDate); return this; } /** *

* The date on which the certificate is set to expire. *

* * @param expiration * The date on which the certificate is set to expire. */ public void setExpiration(java.util.Date expiration) { this.expiration = expiration; } /** *

* The date on which the certificate is set to expire. *

* * @return The date on which the certificate is set to expire. */ public java.util.Date getExpiration() { return this.expiration; } /** *

* The date on which the certificate is set to expire. *

* * @param expiration * The date on which the certificate is set to expire. * @return Returns a reference to this object so that method calls can be * chained together. */ public ServerCertificateMetadata withExpiration(java.util.Date expiration) { setExpiration(expiration); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getPath() != null) sb.append("Path: " + getPath() + ","); if (getServerCertificateName() != null) sb.append("ServerCertificateName: " + getServerCertificateName() + ","); if (getServerCertificateId() != null) sb.append("ServerCertificateId: " + getServerCertificateId() + ","); if (getArn() != null) sb.append("Arn: " + getArn() + ","); if (getUploadDate() != null) sb.append("UploadDate: " + getUploadDate() + ","); if (getExpiration() != null) sb.append("Expiration: " + getExpiration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ServerCertificateMetadata == false) return false; ServerCertificateMetadata other = (ServerCertificateMetadata) obj; if (other.getPath() == null ^ this.getPath() == null) return false; if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getServerCertificateName() == null ^ this.getServerCertificateName() == null) return false; if (other.getServerCertificateName() != null && other.getServerCertificateName().equals( this.getServerCertificateName()) == false) return false; if (other.getServerCertificateId() == null ^ this.getServerCertificateId() == null) return false; if (other.getServerCertificateId() != null && other.getServerCertificateId().equals( this.getServerCertificateId()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getUploadDate() == null ^ this.getUploadDate() == null) return false; if (other.getUploadDate() != null && other.getUploadDate().equals(this.getUploadDate()) == false) return false; if (other.getExpiration() == null ^ this.getExpiration() == null) return false; if (other.getExpiration() != null && other.getExpiration().equals(this.getExpiration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getServerCertificateName() == null) ? 0 : getServerCertificateName().hashCode()); hashCode = prime * hashCode + ((getServerCertificateId() == null) ? 0 : getServerCertificateId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getUploadDate() == null) ? 0 : getUploadDate().hashCode()); hashCode = prime * hashCode + ((getExpiration() == null) ? 0 : getExpiration().hashCode()); return hashCode; } @Override public ServerCertificateMetadata clone() { try { return (ServerCertificateMetadata) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy