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

com.amazonaws.services.paymentcryptography.model.GetParametersForImportResult Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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.paymentcryptography.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days. *

*/ private String wrappingKeyCertificate; /** *

* The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key * certificate in PEM format (base64 encoded). *

*/ private String wrappingKeyCertificateChain; /** *

* The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram. *

*/ private String wrappingKeyAlgorithm; /** *

* The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token expires * after 7 days. You can use the same import token to import multiple keys to the same service account. *

*/ private String importToken; /** *

* The validity period of the import token. *

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

* The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days. *

* * @param wrappingKeyCertificate * The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 * key block. The certificate expires in 7 days. */ public void setWrappingKeyCertificate(String wrappingKeyCertificate) { this.wrappingKeyCertificate = wrappingKeyCertificate; } /** *

* The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days. *

* * @return The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 * key block. The certificate expires in 7 days. */ public String getWrappingKeyCertificate() { return this.wrappingKeyCertificate; } /** *

* The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days. *

* * @param wrappingKeyCertificate * The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 * key block. The certificate expires in 7 days. * @return Returns a reference to this object so that method calls can be chained together. */ public GetParametersForImportResult withWrappingKeyCertificate(String wrappingKeyCertificate) { setWrappingKeyCertificate(wrappingKeyCertificate); return this; } /** *

* The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key * certificate in PEM format (base64 encoded). *

* * @param wrappingKeyCertificateChain * The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key * certificate in PEM format (base64 encoded). */ public void setWrappingKeyCertificateChain(String wrappingKeyCertificateChain) { this.wrappingKeyCertificateChain = wrappingKeyCertificateChain; } /** *

* The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key * certificate in PEM format (base64 encoded). *

* * @return The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key * certificate in PEM format (base64 encoded). */ public String getWrappingKeyCertificateChain() { return this.wrappingKeyCertificateChain; } /** *

* The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key * certificate in PEM format (base64 encoded). *

* * @param wrappingKeyCertificateChain * The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key * certificate in PEM format (base64 encoded). * @return Returns a reference to this object so that method calls can be chained together. */ public GetParametersForImportResult withWrappingKeyCertificateChain(String wrappingKeyCertificateChain) { setWrappingKeyCertificateChain(wrappingKeyCertificateChain); return this; } /** *

* The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram. *

* * @param wrappingKeyAlgorithm * The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram. * @see KeyAlgorithm */ public void setWrappingKeyAlgorithm(String wrappingKeyAlgorithm) { this.wrappingKeyAlgorithm = wrappingKeyAlgorithm; } /** *

* The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram. *

* * @return The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram. * @see KeyAlgorithm */ public String getWrappingKeyAlgorithm() { return this.wrappingKeyAlgorithm; } /** *

* The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram. *

* * @param wrappingKeyAlgorithm * The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram. * @return Returns a reference to this object so that method calls can be chained together. * @see KeyAlgorithm */ public GetParametersForImportResult withWrappingKeyAlgorithm(String wrappingKeyAlgorithm) { setWrappingKeyAlgorithm(wrappingKeyAlgorithm); return this; } /** *

* The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram. *

* * @param wrappingKeyAlgorithm * The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram. * @return Returns a reference to this object so that method calls can be chained together. * @see KeyAlgorithm */ public GetParametersForImportResult withWrappingKeyAlgorithm(KeyAlgorithm wrappingKeyAlgorithm) { this.wrappingKeyAlgorithm = wrappingKeyAlgorithm.toString(); return this; } /** *

* The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token expires * after 7 days. You can use the same import token to import multiple keys to the same service account. *

* * @param importToken * The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token * expires after 7 days. You can use the same import token to import multiple keys to the same service * account. */ public void setImportToken(String importToken) { this.importToken = importToken; } /** *

* The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token expires * after 7 days. You can use the same import token to import multiple keys to the same service account. *

* * @return The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token * expires after 7 days. You can use the same import token to import multiple keys to the same service * account. */ public String getImportToken() { return this.importToken; } /** *

* The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token expires * after 7 days. You can use the same import token to import multiple keys to the same service account. *

* * @param importToken * The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token * expires after 7 days. You can use the same import token to import multiple keys to the same service * account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetParametersForImportResult withImportToken(String importToken) { setImportToken(importToken); return this; } /** *

* The validity period of the import token. *

* * @param parametersValidUntilTimestamp * The validity period of the import token. */ public void setParametersValidUntilTimestamp(java.util.Date parametersValidUntilTimestamp) { this.parametersValidUntilTimestamp = parametersValidUntilTimestamp; } /** *

* The validity period of the import token. *

* * @return The validity period of the import token. */ public java.util.Date getParametersValidUntilTimestamp() { return this.parametersValidUntilTimestamp; } /** *

* The validity period of the import token. *

* * @param parametersValidUntilTimestamp * The validity period of the import token. * @return Returns a reference to this object so that method calls can be chained together. */ public GetParametersForImportResult withParametersValidUntilTimestamp(java.util.Date parametersValidUntilTimestamp) { setParametersValidUntilTimestamp(parametersValidUntilTimestamp); 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 (getWrappingKeyCertificate() != null) sb.append("WrappingKeyCertificate: ").append("***Sensitive Data Redacted***").append(","); if (getWrappingKeyCertificateChain() != null) sb.append("WrappingKeyCertificateChain: ").append("***Sensitive Data Redacted***").append(","); if (getWrappingKeyAlgorithm() != null) sb.append("WrappingKeyAlgorithm: ").append(getWrappingKeyAlgorithm()).append(","); if (getImportToken() != null) sb.append("ImportToken: ").append(getImportToken()).append(","); if (getParametersValidUntilTimestamp() != null) sb.append("ParametersValidUntilTimestamp: ").append(getParametersValidUntilTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetParametersForImportResult == false) return false; GetParametersForImportResult other = (GetParametersForImportResult) obj; if (other.getWrappingKeyCertificate() == null ^ this.getWrappingKeyCertificate() == null) return false; if (other.getWrappingKeyCertificate() != null && other.getWrappingKeyCertificate().equals(this.getWrappingKeyCertificate()) == false) return false; if (other.getWrappingKeyCertificateChain() == null ^ this.getWrappingKeyCertificateChain() == null) return false; if (other.getWrappingKeyCertificateChain() != null && other.getWrappingKeyCertificateChain().equals(this.getWrappingKeyCertificateChain()) == false) return false; if (other.getWrappingKeyAlgorithm() == null ^ this.getWrappingKeyAlgorithm() == null) return false; if (other.getWrappingKeyAlgorithm() != null && other.getWrappingKeyAlgorithm().equals(this.getWrappingKeyAlgorithm()) == false) return false; if (other.getImportToken() == null ^ this.getImportToken() == null) return false; if (other.getImportToken() != null && other.getImportToken().equals(this.getImportToken()) == false) return false; if (other.getParametersValidUntilTimestamp() == null ^ this.getParametersValidUntilTimestamp() == null) return false; if (other.getParametersValidUntilTimestamp() != null && other.getParametersValidUntilTimestamp().equals(this.getParametersValidUntilTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWrappingKeyCertificate() == null) ? 0 : getWrappingKeyCertificate().hashCode()); hashCode = prime * hashCode + ((getWrappingKeyCertificateChain() == null) ? 0 : getWrappingKeyCertificateChain().hashCode()); hashCode = prime * hashCode + ((getWrappingKeyAlgorithm() == null) ? 0 : getWrappingKeyAlgorithm().hashCode()); hashCode = prime * hashCode + ((getImportToken() == null) ? 0 : getImportToken().hashCode()); hashCode = prime * hashCode + ((getParametersValidUntilTimestamp() == null) ? 0 : getParametersValidUntilTimestamp().hashCode()); return hashCode; } @Override public GetParametersForImportResult clone() { try { return (GetParametersForImportResult) 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