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 Java SDK for AWS IAM module holds the client classes that are used for communicating with AWS Identity and Access Management Service

The newest version!
/*
 * Copyright 2020-2025 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;
import javax.annotation.Generated;

/**
 * 

* 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 * operations. *

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

* The path to the server certificate. For more information about paths, see IAM identifiers in the IAM * User 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 IAM * User 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 IAM User 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 * IAM User 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 * IAM User 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 * IAM User 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 IAM * User Guide. *

* * @param path * The path to the server certificate. For more information about paths, see IAM identifiers in the * IAM User 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 IAM * User Guide. *

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

* The path to the server certificate. For more information about paths, see IAM identifiers in the IAM * User Guide. *

* * @param path * The path to the server certificate. For more information about paths, see IAM identifiers in the * IAM User 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 IAM * User Guide. *

* * @param serverCertificateId * The stable and unique string identifying the server certificate. For more information about IDs, see IAM identifiers in the * IAM User 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 IAM * User Guide. *

* * @return The stable and unique string identifying the server certificate. For more information about IDs, see IAM identifiers in the * IAM User 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 IAM * User Guide. *

* * @param serverCertificateId * The stable and unique string identifying the server certificate. For more information about IDs, see IAM identifiers in the * IAM User 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 IAM User 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 * IAM User 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 IAM User 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 * IAM User 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 IAM User 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 * IAM User 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. 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 (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getServerCertificateName() != null) sb.append("ServerCertificateName: ").append(getServerCertificateName()).append(","); if (getServerCertificateId() != null) sb.append("ServerCertificateId: ").append(getServerCertificateId()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getUploadDate() != null) sb.append("UploadDate: ").append(getUploadDate()).append(","); if (getExpiration() != null) sb.append("Expiration: ").append(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