/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents information about the key used to encrypt data in the artifact
* store, such as an AWS Key Management Service (AWS KMS) key.See
* Also:
AWS
* API Reference
The ID used to identify the key. For an AWS KMS key, you can use the key ID, * the key ARN, or the alias ARN.
Aliases are recognized only in the * account that created the customer master key (CMK). For cross-account actions, * you can only use the key ID or key ARN to identify the key.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID used to identify the key. For an AWS KMS key, you can use the key ID, * the key ARN, or the alias ARN.
Aliases are recognized only in the * account that created the customer master key (CMK). For cross-account actions, * you can only use the key ID or key ARN to identify the key.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID used to identify the key. For an AWS KMS key, you can use the key ID, * the key ARN, or the alias ARN.
Aliases are recognized only in the * account that created the customer master key (CMK). For cross-account actions, * you can only use the key ID or key ARN to identify the key.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID used to identify the key. For an AWS KMS key, you can use the key ID, * the key ARN, or the alias ARN.
Aliases are recognized only in the * account that created the customer master key (CMK). For cross-account actions, * you can only use the key ID or key ARN to identify the key.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID used to identify the key. For an AWS KMS key, you can use the key ID, * the key ARN, or the alias ARN.
Aliases are recognized only in the * account that created the customer master key (CMK). For cross-account actions, * you can only use the key ID or key ARN to identify the key.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID used to identify the key. For an AWS KMS key, you can use the key ID, * the key ARN, or the alias ARN.
Aliases are recognized only in the * account that created the customer master key (CMK). For cross-account actions, * you can only use the key ID or key ARN to identify the key.
*/ inline EncryptionKey& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID used to identify the key. For an AWS KMS key, you can use the key ID, * the key ARN, or the alias ARN.
Aliases are recognized only in the * account that created the customer master key (CMK). For cross-account actions, * you can only use the key ID or key ARN to identify the key.
*/ inline EncryptionKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID used to identify the key. For an AWS KMS key, you can use the key ID, * the key ARN, or the alias ARN.
Aliases are recognized only in the * account that created the customer master key (CMK). For cross-account actions, * you can only use the key ID or key ARN to identify the key.
*/ inline EncryptionKey& WithId(const char* value) { SetId(value); return *this;} /** *The type of encryption key, such as an AWS Key Management Service (AWS KMS) * key. When creating or updating a pipeline, the value must be set to 'KMS'.
*/ inline const EncryptionKeyType& GetType() const{ return m_type; } /** *The type of encryption key, such as an AWS Key Management Service (AWS KMS) * key. When creating or updating a pipeline, the value must be set to 'KMS'.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of encryption key, such as an AWS Key Management Service (AWS KMS) * key. When creating or updating a pipeline, the value must be set to 'KMS'.
*/ inline void SetType(const EncryptionKeyType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of encryption key, such as an AWS Key Management Service (AWS KMS) * key. When creating or updating a pipeline, the value must be set to 'KMS'.
*/ inline void SetType(EncryptionKeyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of encryption key, such as an AWS Key Management Service (AWS KMS) * key. When creating or updating a pipeline, the value must be set to 'KMS'.
*/ inline EncryptionKey& WithType(const EncryptionKeyType& value) { SetType(value); return *this;} /** *The type of encryption key, such as an AWS Key Management Service (AWS KMS) * key. When creating or updating a pipeline, the value must be set to 'KMS'.
*/ inline EncryptionKey& WithType(EncryptionKeyType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet; EncryptionKeyType m_type; bool m_typeHasBeenSet; }; } // namespace Model } // namespace CodePipeline } // namespace Aws