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;
  

Contains the output of the DescribeHsm action.

  
  public class DescribeHsmResult implements SerializableCloneable {

    
The ARN of the HSM.

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

  
      private String hsmArn;

    
The status of the HSM.

Constraints:
Allowed Values: PENDING, RUNNING, UPDATING, SUSPENDED, TERMINATING, TERMINATED, DEGRADED

  
      private String status;

    
Contains additional information about the status of the HSM.

Constraints:
Pattern: [\w :+=./\\-]*

  
      private String statusDetails;

    
The Availability Zone that the HSM is in.

Constraints:
Pattern: [a-zA-Z0-9\-]*

  
      private String availabilityZone;

    
The identifier of the elastic network interface (ENI) attached to the HSM.

Constraints:
Pattern: eni-[0-9a-f]{8}

  
      private String eniId;

    
The IP address assigned to the HSM's ENI.

Constraints:
Pattern: \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}

  
      private String eniIp;

    
The subscription type.

Constraints:
Allowed Values: PRODUCTION

  
      private String subscriptionType;

    
The subscription start date.

Constraints:
Pattern: \d*

  
      private String subscriptionStartDate;

    
The subscription end date.

Constraints:
Pattern: \d*

  
      private String subscriptionEndDate;

    
The identifier of the VPC that the HSM is in.

Constraints:
Pattern: vpc-[0-9a-f]{8}

 
     private String vpcId;

    
The identifier of the subnet the HSM is in.

Constraints:
Pattern: subnet-[0-9a-f]{8}

 
     private String subnetId;

    
The ARN of the IAM role assigned to the HSM.

Constraints:
Pattern: arn:aws(-iso)?:iam::[0-9]{12}:role/[a-zA-Z0-9_\+=,\.\-@]{1,64}

 
     private String iamRoleArn;

    
The serial number of the HSM.

Constraints:
Pattern: \d{1,16}

 
     private String serialNumber;

    
The name of the HSM vendor.

Constraints:
Pattern: [\w :+=./\\-]*

 
     private String vendorName;

    
The HSM model type.

Constraints:
Pattern: [\w :+=./\\-]*

 
     private String hsmType;

    
The HSM software version.

Constraints:
Pattern: [\w :+=./\\-]*

 
     private String softwareVersion;

    
The public SSH key.

Constraints:
Pattern: [a-zA-Z0-9+/= ._:\\@-]*

 
     private String sshPublicKey;

    
The date and time the SSH key was last updated.

Constraints:
Pattern: \d*

 
     private String sshKeyLastUpdated;

    
The URI of the certificate server.

Constraints:
Pattern: [\w :+=./\\-]*

 
     private String serverCertUri;

    
The date and time the server certificate was last updated.

Constraints:
Pattern: \d*

 
     private String serverCertLastUpdated;

    
The list of partitions on the HSM.
 
The ARN of the HSM.

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

Returns:
The ARN of the HSM.
 
     public String getHsmArn() {
         return ;
     }
    
    
The ARN of the HSM.

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

Parameters:
hsmArn The ARN of the HSM.
 
     public void setHsmArn(String hsmArn) {
         this. = hsmArn;
     }
    
    
The ARN of the HSM.

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}:hsm-[0-9a-f]{8}

Parameters:
hsmArn The ARN of the HSM.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withHsmArn(String hsmArn) {
         this. = hsmArn;
         return this;
     }

    
The status of the HSM.

Constraints:
Allowed Values: PENDING, RUNNING, UPDATING, SUSPENDED, TERMINATING, TERMINATED, DEGRADED

Returns:
The status of the HSM.
See also:
HsmStatus
 
     public String getStatus() {
         return ;
     }
    
    
The status of the HSM.

Constraints:
Allowed Values: PENDING, RUNNING, UPDATING, SUSPENDED, TERMINATING, TERMINATED, DEGRADED

Parameters:
status The status of the HSM.
See also:
HsmStatus
 
     public void setStatus(String status) {
         this. = status;
     }
    
    
The status of the HSM.

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

Constraints:
Allowed Values: PENDING, RUNNING, UPDATING, SUSPENDED, TERMINATING, TERMINATED, DEGRADED

Parameters:
status The status of the HSM.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
HsmStatus
 
     public DescribeHsmResult withStatus(String status) {
         this. = status;
         return this;
     }

    
The status of the HSM.

Constraints:
Allowed Values: PENDING, RUNNING, UPDATING, SUSPENDED, TERMINATING, TERMINATED, DEGRADED

Parameters:
status The status of the HSM.
See also:
HsmStatus
 
     public void setStatus(HsmStatus status) {
         this. = status.toString();
     }
    
    
The status of the HSM.

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

Constraints:
Allowed Values: PENDING, RUNNING, UPDATING, SUSPENDED, TERMINATING, TERMINATED, DEGRADED

Parameters:
status The status of the HSM.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
HsmStatus
 
     public DescribeHsmResult withStatus(HsmStatus status) {
         this. = status.toString();
         return this;
     }

    
Contains additional information about the status of the HSM.

Constraints:
Pattern: [\w :+=./\\-]*

Returns:
Contains additional information about the status of the HSM.
 
     public String getStatusDetails() {
         return ;
     }
    
    
Contains additional information about the status of the HSM.

Constraints:
Pattern: [\w :+=./\\-]*

Parameters:
statusDetails Contains additional information about the status of the HSM.
 
     public void setStatusDetails(String statusDetails) {
         this. = statusDetails;
     }
    
    
Contains additional information about the status of the HSM.

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

Constraints:
Pattern: [\w :+=./\\-]*

Parameters:
statusDetails Contains additional information about the status of the HSM.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withStatusDetails(String statusDetails) {
         this. = statusDetails;
         return this;
     }

    
The Availability Zone that the HSM is in.

Constraints:
Pattern: [a-zA-Z0-9\-]*

Returns:
The Availability Zone that the HSM is in.
 
     public String getAvailabilityZone() {
         return ;
     }
    
    
The Availability Zone that the HSM is in.

Constraints:
Pattern: [a-zA-Z0-9\-]*

Parameters:
availabilityZone The Availability Zone that the HSM is in.
 
     public void setAvailabilityZone(String availabilityZone) {
         this. = availabilityZone;
     }
    
    
The Availability Zone that the HSM is in.

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

Constraints:
Pattern: [a-zA-Z0-9\-]*

Parameters:
availabilityZone The Availability Zone that the HSM is in.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withAvailabilityZone(String availabilityZone) {
         this. = availabilityZone;
         return this;
     }

    
The identifier of the elastic network interface (ENI) attached to the HSM.

Constraints:
Pattern: eni-[0-9a-f]{8}

Returns:
The identifier of the elastic network interface (ENI) attached to the HSM.
 
     public String getEniId() {
         return ;
     }
    
    
The identifier of the elastic network interface (ENI) attached to the HSM.

Constraints:
Pattern: eni-[0-9a-f]{8}

Parameters:
eniId The identifier of the elastic network interface (ENI) attached to the HSM.
 
     public void setEniId(String eniId) {
         this. = eniId;
     }
    
    
The identifier of the elastic network interface (ENI) attached to the HSM.

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

Constraints:
Pattern: eni-[0-9a-f]{8}

Parameters:
eniId The identifier of the elastic network interface (ENI) attached to the HSM.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withEniId(String eniId) {
         this. = eniId;
         return this;
     }

    
The IP address assigned to the HSM's ENI.

Constraints:
Pattern: \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}

Returns:
The IP address assigned to the HSM's ENI.
 
     public String getEniIp() {
         return ;
     }
    
    
The IP address assigned to the HSM's ENI.

Constraints:
Pattern: \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}

Parameters:
eniIp The IP address assigned to the HSM's ENI.
 
     public void setEniIp(String eniIp) {
         this. = eniIp;
     }
    
    
The IP address assigned to the HSM's ENI.

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

Constraints:
Pattern: \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}

Parameters:
eniIp The IP address assigned to the HSM's ENI.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withEniIp(String eniIp) {
         this. = eniIp;
         return this;
     }

    
The subscription type.

Constraints:
Allowed Values: PRODUCTION

Returns:
The subscription type.
See also:
SubscriptionType
 
     public String getSubscriptionType() {
         return ;
     }
    
    
The subscription type.

Constraints:
Allowed Values: PRODUCTION

Parameters:
subscriptionType The subscription type.
See also:
SubscriptionType
 
     public void setSubscriptionType(String subscriptionType) {
         this. = subscriptionType;
     }
    
    
The subscription type.

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

Constraints:
Allowed Values: PRODUCTION

Parameters:
subscriptionType The subscription type.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
SubscriptionType
 
     public DescribeHsmResult withSubscriptionType(String subscriptionType) {
         this. = subscriptionType;
         return this;
     }

    
The subscription type.

Constraints:
Allowed Values: PRODUCTION

Parameters:
subscriptionType The subscription type.
See also:
SubscriptionType
 
     public void setSubscriptionType(SubscriptionType subscriptionType) {
         this. = subscriptionType.toString();
     }
    
    
The subscription type.

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

Constraints:
Allowed Values: PRODUCTION

Parameters:
subscriptionType The subscription type.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
SubscriptionType
 
     public DescribeHsmResult withSubscriptionType(SubscriptionType subscriptionType) {
         this. = subscriptionType.toString();
         return this;
     }

    
The subscription start date.

Constraints:
Pattern: \d*

Returns:
The subscription start date.
 
     public String getSubscriptionStartDate() {
         return ;
     }
    
    
The subscription start date.

Constraints:
Pattern: \d*

Parameters:
subscriptionStartDate The subscription start date.
 
     public void setSubscriptionStartDate(String subscriptionStartDate) {
         this. = subscriptionStartDate;
     }
    
    
The subscription start date.

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

Constraints:
Pattern: \d*

Parameters:
subscriptionStartDate The subscription start date.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withSubscriptionStartDate(String subscriptionStartDate) {
         this. = subscriptionStartDate;
         return this;
     }

    
The subscription end date.

Constraints:
Pattern: \d*

Returns:
The subscription end date.
 
     public String getSubscriptionEndDate() {
         return ;
     }
    
    
The subscription end date.

Constraints:
Pattern: \d*

Parameters:
subscriptionEndDate The subscription end date.
 
     public void setSubscriptionEndDate(String subscriptionEndDate) {
         this. = subscriptionEndDate;
     }
    
    
The subscription end date.

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

Constraints:
Pattern: \d*

Parameters:
subscriptionEndDate The subscription end date.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withSubscriptionEndDate(String subscriptionEndDate) {
         this. = subscriptionEndDate;
         return this;
     }

    
The identifier of the VPC that the HSM is in.

Constraints:
Pattern: vpc-[0-9a-f]{8}

Returns:
The identifier of the VPC that the HSM is in.
 
     public String getVpcId() {
         return ;
     }
    
    
The identifier of the VPC that the HSM is in.

Constraints:
Pattern: vpc-[0-9a-f]{8}

Parameters:
vpcId The identifier of the VPC that the HSM is in.
 
     public void setVpcId(String vpcId) {
         this. = vpcId;
     }
    
    
The identifier of the VPC that the HSM is in.

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

Constraints:
Pattern: vpc-[0-9a-f]{8}

Parameters:
vpcId The identifier of the VPC that the HSM is in.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withVpcId(String vpcId) {
         this. = vpcId;
         return this;
     }

    
The identifier of the subnet the HSM is in.

Constraints:
Pattern: subnet-[0-9a-f]{8}

Returns:
The identifier of the subnet the HSM is in.
 
     public String getSubnetId() {
         return ;
     }
    
    
The identifier of the subnet the HSM is in.

Constraints:
Pattern: subnet-[0-9a-f]{8}

Parameters:
subnetId The identifier of the subnet the HSM is in.
 
     public void setSubnetId(String subnetId) {
         this. = subnetId;
     }
    
    
The identifier of the subnet the HSM is in.

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

Constraints:
Pattern: subnet-[0-9a-f]{8}

Parameters:
subnetId The identifier of the subnet the HSM is in.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withSubnetId(String subnetId) {
         this. = subnetId;
         return this;
     }

    
The ARN of the IAM role assigned to the HSM.

Constraints:
Pattern: arn:aws(-iso)?:iam::[0-9]{12}:role/[a-zA-Z0-9_\+=,\.\-@]{1,64}

Returns:
The ARN of the IAM role assigned to the HSM.
 
     public String getIamRoleArn() {
         return ;
     }
    
    
The ARN of the IAM role assigned to the HSM.

Constraints:
Pattern: arn:aws(-iso)?:iam::[0-9]{12}:role/[a-zA-Z0-9_\+=,\.\-@]{1,64}

Parameters:
iamRoleArn The ARN of the IAM role assigned to the HSM.
 
     public void setIamRoleArn(String iamRoleArn) {
         this. = iamRoleArn;
     }
    
    
The ARN of the IAM role assigned to the HSM.

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

Constraints:
Pattern: arn:aws(-iso)?:iam::[0-9]{12}:role/[a-zA-Z0-9_\+=,\.\-@]{1,64}

Parameters:
iamRoleArn The ARN of the IAM role assigned to the HSM.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withIamRoleArn(String iamRoleArn) {
         this. = iamRoleArn;
         return this;
     }

    
The serial number of the HSM.

Constraints:
Pattern: \d{1,16}

Returns:
The serial number of the HSM.
 
     public String getSerialNumber() {
         return ;
     }
    
    
The serial number of the HSM.

Constraints:
Pattern: \d{1,16}

Parameters:
serialNumber The serial number of the HSM.
 
     public void setSerialNumber(String serialNumber) {
         this. = serialNumber;
     }
    
    
The serial number of the HSM.

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

Constraints:
Pattern: \d{1,16}

Parameters:
serialNumber The serial number of the HSM.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withSerialNumber(String serialNumber) {
         this. = serialNumber;
         return this;
     }

    
The name of the HSM vendor.

Constraints:
Pattern: [\w :+=./\\-]*

Returns:
The name of the HSM vendor.
 
     public String getVendorName() {
         return ;
     }
    
    
The name of the HSM vendor.

Constraints:
Pattern: [\w :+=./\\-]*

Parameters:
vendorName The name of the HSM vendor.
 
     public void setVendorName(String vendorName) {
         this. = vendorName;
     }
    
    
The name of the HSM vendor.

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

Constraints:
Pattern: [\w :+=./\\-]*

Parameters:
vendorName The name of the HSM vendor.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withVendorName(String vendorName) {
         this. = vendorName;
         return this;
     }

    
The HSM model type.

Constraints:
Pattern: [\w :+=./\\-]*

Returns:
The HSM model type.
 
     public String getHsmType() {
         return ;
     }
    
    
The HSM model type.

Constraints:
Pattern: [\w :+=./\\-]*

Parameters:
hsmType The HSM model type.
 
     public void setHsmType(String hsmType) {
         this. = hsmType;
     }
    
    
The HSM model type.

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

Constraints:
Pattern: [\w :+=./\\-]*

Parameters:
hsmType The HSM model type.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withHsmType(String hsmType) {
         this. = hsmType;
         return this;
     }

    
The HSM software version.

Constraints:
Pattern: [\w :+=./\\-]*

Returns:
The HSM software version.
 
     public String getSoftwareVersion() {
         return ;
     }
    
    
The HSM software version.

Constraints:
Pattern: [\w :+=./\\-]*

Parameters:
softwareVersion The HSM software version.
 
     public void setSoftwareVersion(String softwareVersion) {
         this. = softwareVersion;
     }
    
    
The HSM software version.

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

Constraints:
Pattern: [\w :+=./\\-]*

Parameters:
softwareVersion The HSM software version.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withSoftwareVersion(String softwareVersion) {
         this. = softwareVersion;
         return this;
     }

    
The public SSH key.

Constraints:
Pattern: [a-zA-Z0-9+/= ._:\\@-]*

Returns:
The public SSH key.
 
     public String getSshPublicKey() {
         return ;
     }
    
    
The public SSH key.

Constraints:
Pattern: [a-zA-Z0-9+/= ._:\\@-]*

Parameters:
sshPublicKey The public SSH key.
 
     public void setSshPublicKey(String sshPublicKey) {
         this. = sshPublicKey;
     }
    
    
The public SSH key.

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

Constraints:
Pattern: [a-zA-Z0-9+/= ._:\\@-]*

Parameters:
sshPublicKey The public SSH key.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeHsmResult withSshPublicKey(String sshPublicKey) {
         this. = sshPublicKey;
         return this;
     }

    
The date and time the SSH key was last updated.

Constraints:
Pattern: \d*

Returns:
The date and time the SSH key was last updated.
 
    public String getSshKeyLastUpdated() {
        return ;
    }
    
    
The date and time the SSH key was last updated.

Constraints:
Pattern: \d*

Parameters:
sshKeyLastUpdated The date and time the SSH key was last updated.
    public void setSshKeyLastUpdated(String sshKeyLastUpdated) {
        this. = sshKeyLastUpdated;
    }
    
    
The date and time the SSH key was last updated.

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

Constraints:
Pattern: \d*

Parameters:
sshKeyLastUpdated The date and time the SSH key was last updated.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeHsmResult withSshKeyLastUpdated(String sshKeyLastUpdated) {
        this. = sshKeyLastUpdated;
        return this;
    }

    
The URI of the certificate server.

Constraints:
Pattern: [\w :+=./\\-]*

Returns:
The URI of the certificate server.
    public String getServerCertUri() {
        return ;
    }
    
    
The URI of the certificate server.

Constraints:
Pattern: [\w :+=./\\-]*

Parameters:
serverCertUri The URI of the certificate server.
    public void setServerCertUri(String serverCertUri) {
        this. = serverCertUri;
    }
    
    
The URI of the certificate server.

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

Constraints:
Pattern: [\w :+=./\\-]*

Parameters:
serverCertUri The URI of the certificate server.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeHsmResult withServerCertUri(String serverCertUri) {
        this. = serverCertUri;
        return this;
    }

    
The date and time the server certificate was last updated.

Constraints:
Pattern: \d*

Returns:
The date and time the server certificate was last updated.
    public String getServerCertLastUpdated() {
        return ;
    }
    
    
The date and time the server certificate was last updated.

Constraints:
Pattern: \d*

Parameters:
serverCertLastUpdated The date and time the server certificate was last updated.
    public void setServerCertLastUpdated(String serverCertLastUpdated) {
        this. = serverCertLastUpdated;
    }
    
    
The date and time the server certificate was last updated.

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

Constraints:
Pattern: \d*

Parameters:
serverCertLastUpdated The date and time the server certificate was last updated.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeHsmResult withServerCertLastUpdated(String serverCertLastUpdated) {
        this. = serverCertLastUpdated;
        return this;
    }

    
The list of partitions on the HSM.

Returns:
The list of partitions on the HSM.
    public java.util.List<StringgetPartitions() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The list of partitions on the HSM.

Parameters:
partitions The list of partitions on the HSM.
    public void setPartitions(java.util.Collection<Stringpartitions) {
        if (partitions == null) {
            this. = null;
            return;
        }
        partitionsCopy.addAll(partitions);
        this. = partitionsCopy;
    }
    
    
The list of partitions on the HSM.

NOTE: This method appends the values to the existing list (if any). Use setPartitions(java.util.Collection) or withPartitions(java.util.Collection) if you want to override the existing values.

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

Parameters:
partitions The list of partitions on the HSM.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeHsmResult withPartitions(String... partitions) {
        if (getPartitions() == nullsetPartitions(new java.util.ArrayList<String>(partitions.length));
        for (String value : partitions) {
            getPartitions().add(value);
        }
        return this;
    }
    
    
The list of partitions on the HSM.

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

Parameters:
partitions The list of partitions on the HSM.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (partitions == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringpartitionsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(partitions.size());
            partitionsCopy.addAll(partitions);
            this. = partitionsCopy;
        }
        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 (getHsmArn() != nullsb.append("HsmArn: " + getHsmArn() + ",");
        if (getStatus() != nullsb.append("Status: " + getStatus() + ",");
        if (getStatusDetails() != nullsb.append("StatusDetails: " + getStatusDetails() + ",");
        if (getAvailabilityZone() != nullsb.append("AvailabilityZone: " + getAvailabilityZone() + ",");
        if (getEniId() != nullsb.append("EniId: " + getEniId() + ",");
        if (getEniIp() != nullsb.append("EniIp: " + getEniIp() + ",");
        if (getSubscriptionType() != nullsb.append("SubscriptionType: " + getSubscriptionType() + ",");
        if (getSubscriptionStartDate() != nullsb.append("SubscriptionStartDate: " + getSubscriptionStartDate() + ",");
        if (getSubscriptionEndDate() != nullsb.append("SubscriptionEndDate: " + getSubscriptionEndDate() + ",");
        if (getVpcId() != nullsb.append("VpcId: " + getVpcId() + ",");
        if (getSubnetId() != nullsb.append("SubnetId: " + getSubnetId() + ",");
        if (getIamRoleArn() != nullsb.append("IamRoleArn: " + getIamRoleArn() + ",");
        if (getSerialNumber() != nullsb.append("SerialNumber: " + getSerialNumber() + ",");
        if (getVendorName() != nullsb.append("VendorName: " + getVendorName() + ",");
        if (getHsmType() != nullsb.append("HsmType: " + getHsmType() + ",");
        if (getSoftwareVersion() != nullsb.append("SoftwareVersion: " + getSoftwareVersion() + ",");
        if (getSshPublicKey() != nullsb.append("SshPublicKey: " + getSshPublicKey() + ",");
        if (getSshKeyLastUpdated() != nullsb.append("SshKeyLastUpdated: " + getSshKeyLastUpdated() + ",");
        if (getServerCertUri() != nullsb.append("ServerCertUri: " + getServerCertUri() + ",");
        if (getServerCertLastUpdated() != nullsb.append("ServerCertLastUpdated: " + getServerCertLastUpdated() + ",");
        if (getPartitions() != nullsb.append("Partitions: " + getPartitions() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getHsmArn() == null) ? 0 : getHsmArn().hashCode()); 
        hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); 
        hashCode = prime * hashCode + ((getStatusDetails() == null) ? 0 : getStatusDetails().hashCode()); 
        hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); 
        hashCode = prime * hashCode + ((getEniId() == null) ? 0 : getEniId().hashCode()); 
        hashCode = prime * hashCode + ((getEniIp() == null) ? 0 : getEniIp().hashCode()); 
        hashCode = prime * hashCode + ((getSubscriptionType() == null) ? 0 : getSubscriptionType().hashCode()); 
        hashCode = prime * hashCode + ((getSubscriptionStartDate() == null) ? 0 : getSubscriptionStartDate().hashCode()); 
        hashCode = prime * hashCode + ((getSubscriptionEndDate() == null) ? 0 : getSubscriptionEndDate().hashCode()); 
        hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); 
        hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode()); 
        hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode()); 
        hashCode = prime * hashCode + ((getSerialNumber() == null) ? 0 : getSerialNumber().hashCode()); 
        hashCode = prime * hashCode + ((getVendorName() == null) ? 0 : getVendorName().hashCode()); 
        hashCode = prime * hashCode + ((getHsmType() == null) ? 0 : getHsmType().hashCode()); 
        hashCode = prime * hashCode + ((getSoftwareVersion() == null) ? 0 : getSoftwareVersion().hashCode()); 
        hashCode = prime * hashCode + ((getSshPublicKey() == null) ? 0 : getSshPublicKey().hashCode()); 
        hashCode = prime * hashCode + ((getSshKeyLastUpdated() == null) ? 0 : getSshKeyLastUpdated().hashCode()); 
        hashCode = prime * hashCode + ((getServerCertUri() == null) ? 0 : getServerCertUri().hashCode()); 
        hashCode = prime * hashCode + ((getServerCertLastUpdated() == null) ? 0 : getServerCertLastUpdated().hashCode()); 
        hashCode = prime * hashCode + ((getPartitions() == null) ? 0 : getPartitions().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeHsmResult == falsereturn false;
        DescribeHsmResult other = (DescribeHsmResult)obj;
        
        if (other.getHsmArn() == null ^ this.getHsmArn() == nullreturn false;
        if (other.getHsmArn() != null && other.getHsmArn().equals(this.getHsmArn()) == falsereturn false
        if (other.getStatus() == null ^ this.getStatus() == nullreturn false;
        if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == falsereturn false
        if (other.getStatusDetails() == null ^ this.getStatusDetails() == nullreturn false;
        if (other.getStatusDetails() != null && other.getStatusDetails().equals(this.getStatusDetails()) == falsereturn false
        if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == nullreturn false;
        if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == falsereturn false
        if (other.getEniId() == null ^ this.getEniId() == nullreturn false;
        if (other.getEniId() != null && other.getEniId().equals(this.getEniId()) == falsereturn false
        if (other.getEniIp() == null ^ this.getEniIp() == nullreturn false;
        if (other.getEniIp() != null && other.getEniIp().equals(this.getEniIp()) == falsereturn false
        if (other.getSubscriptionType() == null ^ this.getSubscriptionType() == nullreturn false;
        if (other.getSubscriptionType() != null && other.getSubscriptionType().equals(this.getSubscriptionType()) == falsereturn false
        if (other.getSubscriptionStartDate() == null ^ this.getSubscriptionStartDate() == nullreturn false;
        if (other.getSubscriptionStartDate() != null && other.getSubscriptionStartDate().equals(this.getSubscriptionStartDate()) == falsereturn false
        if (other.getSubscriptionEndDate() == null ^ this.getSubscriptionEndDate() == nullreturn false;
        if (other.getSubscriptionEndDate() != null && other.getSubscriptionEndDate().equals(this.getSubscriptionEndDate()) == falsereturn false
        if (other.getVpcId() == null ^ this.getVpcId() == nullreturn false;
        if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == falsereturn false
        if (other.getSubnetId() == null ^ this.getSubnetId() == nullreturn false;
        if (other.getSubnetId() != null && other.getSubnetId().equals(this.getSubnetId()) == falsereturn false
        if (other.getIamRoleArn() == null ^ this.getIamRoleArn() == nullreturn false;
        if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == falsereturn false
        if (other.getSerialNumber() == null ^ this.getSerialNumber() == nullreturn false;
        if (other.getSerialNumber() != null && other.getSerialNumber().equals(this.getSerialNumber()) == falsereturn false
        if (other.getVendorName() == null ^ this.getVendorName() == nullreturn false;
        if (other.getVendorName() != null && other.getVendorName().equals(this.getVendorName()) == falsereturn false
        if (other.getHsmType() == null ^ this.getHsmType() == nullreturn false;
        if (other.getHsmType() != null && other.getHsmType().equals(this.getHsmType()) == falsereturn false
        if (other.getSoftwareVersion() == null ^ this.getSoftwareVersion() == nullreturn false;
        if (other.getSoftwareVersion() != null && other.getSoftwareVersion().equals(this.getSoftwareVersion()) == falsereturn false
        if (other.getSshPublicKey() == null ^ this.getSshPublicKey() == nullreturn false;
        if (other.getSshPublicKey() != null && other.getSshPublicKey().equals(this.getSshPublicKey()) == falsereturn false
        if (other.getSshKeyLastUpdated() == null ^ this.getSshKeyLastUpdated() == nullreturn false;
        if (other.getSshKeyLastUpdated() != null && other.getSshKeyLastUpdated().equals(this.getSshKeyLastUpdated()) == falsereturn false
        if (other.getServerCertUri() == null ^ this.getServerCertUri() == nullreturn false;
        if (other.getServerCertUri() != null && other.getServerCertUri().equals(this.getServerCertUri()) == falsereturn false
        if (other.getServerCertLastUpdated() == null ^ this.getServerCertLastUpdated() == nullreturn false;
        if (other.getServerCertLastUpdated() != null && other.getServerCertLastUpdated().equals(this.getServerCertLastUpdated()) == falsereturn false
        if (other.getPartitions() == null ^ this.getPartitions() == nullreturn false;
        if (other.getPartitions() != null && other.getPartitions().equals(this.getPartitions()) == falsereturn false
        return true;
    }
    
    @Override
    public DescribeHsmResult clone() {
        try {
            return (DescribeHsmResultsuper.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