Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.cloudhsm.model;
 
 
 public class DescribeLunaClientResult implements SerializableCloneable {

    
The ARN of the client.

Constraints:
Pattern: arn:aws(-iso)?:cloudhsm:[a-zA-Z0-9\-]*:[0-9]{12}:client-[0-9a-f]{8}

 
     private String clientArn;

    
The certificate installed on the HSMs used by this client.

Constraints:
Length: 600 - 2400
Pattern: [\w :+=./\n-]*

 
     private String certificate;

    
The certificate fingerprint.

Constraints:
Pattern: ([0-9a-fA-F][0-9a-fA-F]:){15}[0-9a-fA-F][0-9a-fA-F]

 
     private String certificateFingerprint;

    
The date and time the client was last modified.

Constraints:
Pattern: \d*

 
     private String lastModifiedTimestamp;

    
The label of the client.

Constraints:
Pattern: [a-zA-Z0-9_.-]{1,64}

 
     private String label;

    
The ARN of the client.

Constraints:
Pattern: arn:aws(-iso)?:cloudhsm:[a-zA-Z0-9\-]*:[0-9]{12}:client-[0-9a-f]{8}

Returns:
The ARN of the client.
 
     public String getClientArn() {
         return ;
     }
    
    
The ARN of the client.

Constraints:
Pattern: arn:aws(-iso)?:cloudhsm:[a-zA-Z0-9\-]*:[0-9]{12}:client-[0-9a-f]{8}

Parameters:
clientArn The ARN of the client.
 
     public void setClientArn(String clientArn) {
         this. = clientArn;
     }
    
    
The ARN of the client.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: arn:aws(-iso)?:cloudhsm:[a-zA-Z0-9\-]*:[0-9]{12}:client-[0-9a-f]{8}

Parameters:
clientArn The ARN of the client.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeLunaClientResult withClientArn(String clientArn) {
        this. = clientArn;
        return this;
    }

    
The certificate installed on the HSMs used by this client.

Constraints:
Length: 600 - 2400
Pattern: [\w :+=./\n-]*

Returns:
The certificate installed on the HSMs used by this client.
    public String getCertificate() {
        return ;
    }
    
    
The certificate installed on the HSMs used by this client.

Constraints:
Length: 600 - 2400
Pattern: [\w :+=./\n-]*

Parameters:
certificate The certificate installed on the HSMs used by this client.
    public void setCertificate(String certificate) {
        this. = certificate;
    }
    
    
The certificate installed on the HSMs used by this client.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 600 - 2400
Pattern: [\w :+=./\n-]*

Parameters:
certificate The certificate installed on the HSMs used by this client.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeLunaClientResult withCertificate(String certificate) {
        this. = certificate;
        return this;
    }

    
The certificate fingerprint.

Constraints:
Pattern: ([0-9a-fA-F][0-9a-fA-F]:){15}[0-9a-fA-F][0-9a-fA-F]

Returns:
The certificate fingerprint.
    public String getCertificateFingerprint() {
        return ;
    }
    
    
The certificate fingerprint.

Constraints:
Pattern: ([0-9a-fA-F][0-9a-fA-F]:){15}[0-9a-fA-F][0-9a-fA-F]

Parameters:
certificateFingerprint The certificate fingerprint.
    public void setCertificateFingerprint(String certificateFingerprint) {
        this. = certificateFingerprint;
    }
    
    
The certificate fingerprint.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: ([0-9a-fA-F][0-9a-fA-F]:){15}[0-9a-fA-F][0-9a-fA-F]

Parameters:
certificateFingerprint The certificate fingerprint.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeLunaClientResult withCertificateFingerprint(String certificateFingerprint) {
        this. = certificateFingerprint;
        return this;
    }

    
The date and time the client was last modified.

Constraints:
Pattern: \d*

Returns:
The date and time the client was last modified.
    public String getLastModifiedTimestamp() {
        return ;
    }
    
    
The date and time the client was last modified.

Constraints:
Pattern: \d*

Parameters:
lastModifiedTimestamp The date and time the client was last modified.
    public void setLastModifiedTimestamp(String lastModifiedTimestamp) {
        this. = lastModifiedTimestamp;
    }
    
    
The date and time the client was last modified.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: \d*

Parameters:
lastModifiedTimestamp The date and time the client was last modified.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeLunaClientResult withLastModifiedTimestamp(String lastModifiedTimestamp) {
        this. = lastModifiedTimestamp;
        return this;
    }

    
The label of the client.

Constraints:
Pattern: [a-zA-Z0-9_.-]{1,64}

Returns:
The label of the client.
    public String getLabel() {
        return ;
    }
    
    
The label of the client.

Constraints:
Pattern: [a-zA-Z0-9_.-]{1,64}

Parameters:
label The label of the client.
    public void setLabel(String label) {
        this. = label;
    }
    
    
The label of the client.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: [a-zA-Z0-9_.-]{1,64}

Parameters:
label The label of the client.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeLunaClientResult withLabel(String label) {
        this. = label;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getClientArn() != nullsb.append("ClientArn: " + getClientArn() + ",");
        if (getCertificate() != nullsb.append("Certificate: " + getCertificate() + ",");
        if (getCertificateFingerprint() != nullsb.append("CertificateFingerprint: " + getCertificateFingerprint() + ",");
        if (getLastModifiedTimestamp() != nullsb.append("LastModifiedTimestamp: " + getLastModifiedTimestamp() + ",");
        if (getLabel() != nullsb.append("Label: " + getLabel() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getClientArn() == null) ? 0 : getClientArn().hashCode()); 
        hashCode = prime * hashCode + ((getCertificate() == null) ? 0 : getCertificate().hashCode()); 
        hashCode = prime * hashCode + ((getCertificateFingerprint() == null) ? 0 : getCertificateFingerprint().hashCode()); 
        hashCode = prime * hashCode + ((getLastModifiedTimestamp() == null) ? 0 : getLastModifiedTimestamp().hashCode()); 
        hashCode = prime * hashCode + ((getLabel() == null) ? 0 : getLabel().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeLunaClientResult == falsereturn false;
        DescribeLunaClientResult other = (DescribeLunaClientResult)obj;
        
        if (other.getClientArn() == null ^ this.getClientArn() == nullreturn false;
        if (other.getClientArn() != null && other.getClientArn().equals(this.getClientArn()) == falsereturn false
        if (other.getCertificate() == null ^ this.getCertificate() == nullreturn false;
        if (other.getCertificate() != null && other.getCertificate().equals(this.getCertificate()) == falsereturn false
        if (other.getCertificateFingerprint() == null ^ this.getCertificateFingerprint() == nullreturn false;
        if (other.getCertificateFingerprint() != null && other.getCertificateFingerprint().equals(this.getCertificateFingerprint()) == falsereturn false
        if (other.getLastModifiedTimestamp() == null ^ this.getLastModifiedTimestamp() == nullreturn false;
        if (other.getLastModifiedTimestamp() != null && other.getLastModifiedTimestamp().equals(this.getLastModifiedTimestamp()) == falsereturn false
        if (other.getLabel() == null ^ this.getLabel() == nullreturn false;
        if (other.getLabel() != null && other.getLabel().equals(this.getLabel()) == falsereturn false
        return true;
    }
    
    @Override
    public DescribeLunaClientResult clone() {
        try {
            return (DescribeLunaClientResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X