/** * <p> * The algorithm you will use to encrypt the key material before importing it with <a>ImportKeyMaterial</a>. For * more information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html">Encrypt the * Key Material</a> in the <i>AWS Key Management Service Developer Guide</i>. * </p> * * @param wrappingAlgorithm * The algorithm you will use to encrypt the key material before importing it with <a>ImportKeyMaterial</a>. * For more information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html" * >Encrypt the Key Material</a> in the <i>AWS Key Management Service Developer Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. * @see AlgorithmSpec */ public GetParametersForImportRequest withWrappingAlgorithm(AlgorithmSpec wrappingAlgorithm) { this.wrappingAlgorithm = wrappingAlgorithm.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return AlgorithmSpec corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AlgorithmSpec fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AlgorithmSpec enumEntry : AlgorithmSpec.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
this.wrappingAlgorithm = wrappingAlgorithm.toString(); return this;
/** * Use this in place of valueOf. * * @param value * real value * @return AlgorithmSpec corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AlgorithmSpec fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AlgorithmSpec enumEntry : AlgorithmSpec.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The algorithm you will use to encrypt the key material before importing * it with <a>ImportKeyMaterial</a>. For more information, see <a href= * "http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html" * >Encrypt the Key Material</a> in the <i>AWS Key Management Service * Developer Guide</i>. * </p> * <p> * <b>Constraints:</b><br/> * <b>Allowed Values: </b>RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, * RSAES_OAEP_SHA_256 * * @param wrappingAlgorithm <p> * The algorithm you will use to encrypt the key material before * importing it with <a>ImportKeyMaterial</a>. For more * information, see <a href= * "http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html" * >Encrypt the Key Material</a> in the <i>AWS Key Management * Service Developer Guide</i>. * </p> * @see AlgorithmSpec */ public void setWrappingAlgorithm(AlgorithmSpec wrappingAlgorithm) { this.wrappingAlgorithm = wrappingAlgorithm.toString(); }
/** * Use this in place of valueOf. * * @param value * real value * @return AlgorithmSpec corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AlgorithmSpec fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AlgorithmSpec enumEntry : AlgorithmSpec.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The algorithm you will use to encrypt the key material before importing it with <a>ImportKeyMaterial</a>. For * more information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html">Encrypt the * Key Material</a> in the <i>AWS Key Management Service Developer Guide</i>. * </p> * * @param wrappingAlgorithm * The algorithm you will use to encrypt the key material before importing it with <a>ImportKeyMaterial</a>. * For more information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html" * >Encrypt the Key Material</a> in the <i>AWS Key Management Service Developer Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. * @see AlgorithmSpec */ public GetParametersForImportRequest withWrappingAlgorithm(AlgorithmSpec wrappingAlgorithm) { this.wrappingAlgorithm = wrappingAlgorithm.toString(); return this; }
/** * <p> * The algorithm you will use to encrypt the key material before importing it with <a>ImportKeyMaterial</a>. For * more information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html">Encrypt the * Key Material</a> in the <i>AWS Key Management Service Developer Guide</i>. * </p> * * @param wrappingAlgorithm * The algorithm you will use to encrypt the key material before importing it with <a>ImportKeyMaterial</a>. * For more information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html" * >Encrypt the Key Material</a> in the <i>AWS Key Management Service Developer Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. * @see AlgorithmSpec */ public GetParametersForImportRequest withWrappingAlgorithm(AlgorithmSpec wrappingAlgorithm) { this.wrappingAlgorithm = wrappingAlgorithm.toString(); return this; }
/** * <p> * The algorithm you will use to encrypt the key material before importing * it with <a>ImportKeyMaterial</a>. For more information, see <a href= * "http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html" * >Encrypt the Key Material</a> in the <i>AWS Key Management Service * Developer Guide</i>. * </p> * <p> * <b>Constraints:</b><br/> * <b>Allowed Values: </b>RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, * RSAES_OAEP_SHA_256 * * @param wrappingAlgorithm <p> * The algorithm you will use to encrypt the key material before * importing it with <a>ImportKeyMaterial</a>. For more * information, see <a href= * "http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html" * >Encrypt the Key Material</a> in the <i>AWS Key Management * Service Developer Guide</i>. * </p> * @see AlgorithmSpec */ public void setWrappingAlgorithm(AlgorithmSpec wrappingAlgorithm) { this.wrappingAlgorithm = wrappingAlgorithm.toString(); }
/** * <p> * The algorithm you will use to encrypt the key material before importing * it with <a>ImportKeyMaterial</a>. For more information, see <a href= * "http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html" * >Encrypt the Key Material</a> in the <i>AWS Key Management Service * Developer Guide</i>. * </p> * <p> * <b>Constraints:</b><br/> * <b>Allowed Values: </b>RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, * RSAES_OAEP_SHA_256 * * @param wrappingAlgorithm <p> * The algorithm you will use to encrypt the key material before * importing it with <a>ImportKeyMaterial</a>. For more * information, see <a href= * "http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html" * >Encrypt the Key Material</a> in the <i>AWS Key Management * Service Developer Guide</i>. * </p> * @see AlgorithmSpec */ public void setWrappingAlgorithm(AlgorithmSpec wrappingAlgorithm) { this.wrappingAlgorithm = wrappingAlgorithm.toString(); }
this.wrappingAlgorithm = wrappingAlgorithm.toString(); return this;
this.wrappingAlgorithm = wrappingAlgorithm.toString(); return this;