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

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

/*
 * Copyright 2018-2023 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Parameter information for key material export from Amazon Web Services Payment Cryptography. *

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

* Parameter information for key material export using TR-31 standard. *

*/ private ExportTr31KeyBlock tr31KeyBlock; /** *

* Parameter information for key material export using TR-34 standard. *

*/ private ExportTr34KeyBlock tr34KeyBlock; /** *

* Parameter information for key material export using TR-31 standard. *

* * @param tr31KeyBlock * Parameter information for key material export using TR-31 standard. */ public void setTr31KeyBlock(ExportTr31KeyBlock tr31KeyBlock) { this.tr31KeyBlock = tr31KeyBlock; } /** *

* Parameter information for key material export using TR-31 standard. *

* * @return Parameter information for key material export using TR-31 standard. */ public ExportTr31KeyBlock getTr31KeyBlock() { return this.tr31KeyBlock; } /** *

* Parameter information for key material export using TR-31 standard. *

* * @param tr31KeyBlock * Parameter information for key material export using TR-31 standard. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportKeyMaterial withTr31KeyBlock(ExportTr31KeyBlock tr31KeyBlock) { setTr31KeyBlock(tr31KeyBlock); return this; } /** *

* Parameter information for key material export using TR-34 standard. *

* * @param tr34KeyBlock * Parameter information for key material export using TR-34 standard. */ public void setTr34KeyBlock(ExportTr34KeyBlock tr34KeyBlock) { this.tr34KeyBlock = tr34KeyBlock; } /** *

* Parameter information for key material export using TR-34 standard. *

* * @return Parameter information for key material export using TR-34 standard. */ public ExportTr34KeyBlock getTr34KeyBlock() { return this.tr34KeyBlock; } /** *

* Parameter information for key material export using TR-34 standard. *

* * @param tr34KeyBlock * Parameter information for key material export using TR-34 standard. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportKeyMaterial withTr34KeyBlock(ExportTr34KeyBlock tr34KeyBlock) { setTr34KeyBlock(tr34KeyBlock); 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 (getTr31KeyBlock() != null) sb.append("Tr31KeyBlock: ").append(getTr31KeyBlock()).append(","); if (getTr34KeyBlock() != null) sb.append("Tr34KeyBlock: ").append(getTr34KeyBlock()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ExportKeyMaterial == false) return false; ExportKeyMaterial other = (ExportKeyMaterial) obj; if (other.getTr31KeyBlock() == null ^ this.getTr31KeyBlock() == null) return false; if (other.getTr31KeyBlock() != null && other.getTr31KeyBlock().equals(this.getTr31KeyBlock()) == false) return false; if (other.getTr34KeyBlock() == null ^ this.getTr34KeyBlock() == null) return false; if (other.getTr34KeyBlock() != null && other.getTr34KeyBlock().equals(this.getTr34KeyBlock()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTr31KeyBlock() == null) ? 0 : getTr31KeyBlock().hashCode()); hashCode = prime * hashCode + ((getTr34KeyBlock() == null) ? 0 : getTr34KeyBlock().hashCode()); return hashCode; } @Override public ExportKeyMaterial clone() { try { return (ExportKeyMaterial) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.paymentcryptography.model.transform.ExportKeyMaterialMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy