/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodePipeline { namespace Model { /** *

The S3 bucket where artifacts for the pipeline are stored.

You * must include either artifactStore or artifactStores in * your pipeline, but you cannot use both. If you create a cross-region action in * your pipeline, you must use artifactStores.

See * Also:

AWS * API Reference

*/ class ArtifactStore { public: AWS_CODEPIPELINE_API ArtifactStore(); AWS_CODEPIPELINE_API ArtifactStore(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API ArtifactStore& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of the artifact store, such as S3.

*/ inline const ArtifactStoreType& GetType() const{ return m_type; } /** *

The type of the artifact store, such as S3.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the artifact store, such as S3.

*/ inline void SetType(const ArtifactStoreType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the artifact store, such as S3.

*/ inline void SetType(ArtifactStoreType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the artifact store, such as S3.

*/ inline ArtifactStore& WithType(const ArtifactStoreType& value) { SetType(value); return *this;} /** *

The type of the artifact store, such as S3.

*/ inline ArtifactStore& WithType(ArtifactStoreType&& value) { SetType(std::move(value)); return *this;} /** *

The S3 bucket used for storing the artifacts for a pipeline. You can specify * the name of an S3 bucket but not a folder in the bucket. A folder to contain the * pipeline artifacts is created for you based on the name of the pipeline. You can * use any S3 bucket in the same Amazon Web Services Region as the pipeline to * store your pipeline artifacts.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

The S3 bucket used for storing the artifacts for a pipeline. You can specify * the name of an S3 bucket but not a folder in the bucket. A folder to contain the * pipeline artifacts is created for you based on the name of the pipeline. You can * use any S3 bucket in the same Amazon Web Services Region as the pipeline to * store your pipeline artifacts.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The S3 bucket used for storing the artifacts for a pipeline. You can specify * the name of an S3 bucket but not a folder in the bucket. A folder to contain the * pipeline artifacts is created for you based on the name of the pipeline. You can * use any S3 bucket in the same Amazon Web Services Region as the pipeline to * store your pipeline artifacts.

*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The S3 bucket used for storing the artifacts for a pipeline. You can specify * the name of an S3 bucket but not a folder in the bucket. A folder to contain the * pipeline artifacts is created for you based on the name of the pipeline. You can * use any S3 bucket in the same Amazon Web Services Region as the pipeline to * store your pipeline artifacts.

*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The S3 bucket used for storing the artifacts for a pipeline. You can specify * the name of an S3 bucket but not a folder in the bucket. A folder to contain the * pipeline artifacts is created for you based on the name of the pipeline. You can * use any S3 bucket in the same Amazon Web Services Region as the pipeline to * store your pipeline artifacts.

*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *

The S3 bucket used for storing the artifacts for a pipeline. You can specify * the name of an S3 bucket but not a folder in the bucket. A folder to contain the * pipeline artifacts is created for you based on the name of the pipeline. You can * use any S3 bucket in the same Amazon Web Services Region as the pipeline to * store your pipeline artifacts.

*/ inline ArtifactStore& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The S3 bucket used for storing the artifacts for a pipeline. You can specify * the name of an S3 bucket but not a folder in the bucket. A folder to contain the * pipeline artifacts is created for you based on the name of the pipeline. You can * use any S3 bucket in the same Amazon Web Services Region as the pipeline to * store your pipeline artifacts.

*/ inline ArtifactStore& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

The S3 bucket used for storing the artifacts for a pipeline. You can specify * the name of an S3 bucket but not a folder in the bucket. A folder to contain the * pipeline artifacts is created for you based on the name of the pipeline. You can * use any S3 bucket in the same Amazon Web Services Region as the pipeline to * store your pipeline artifacts.

*/ inline ArtifactStore& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

The encryption key used to encrypt the data in the artifact store, such as an * Amazon Web Services Key Management Service key. If this is undefined, the * default key for Amazon S3 is used.

*/ inline const EncryptionKey& GetEncryptionKey() const{ return m_encryptionKey; } /** *

The encryption key used to encrypt the data in the artifact store, such as an * Amazon Web Services Key Management Service key. If this is undefined, the * default key for Amazon S3 is used.

*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *

The encryption key used to encrypt the data in the artifact store, such as an * Amazon Web Services Key Management Service key. If this is undefined, the * default key for Amazon S3 is used.

*/ inline void SetEncryptionKey(const EncryptionKey& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *

The encryption key used to encrypt the data in the artifact store, such as an * Amazon Web Services Key Management Service key. If this is undefined, the * default key for Amazon S3 is used.

*/ inline void SetEncryptionKey(EncryptionKey&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *

The encryption key used to encrypt the data in the artifact store, such as an * Amazon Web Services Key Management Service key. If this is undefined, the * default key for Amazon S3 is used.

*/ inline ArtifactStore& WithEncryptionKey(const EncryptionKey& value) { SetEncryptionKey(value); return *this;} /** *

The encryption key used to encrypt the data in the artifact store, such as an * Amazon Web Services Key Management Service key. If this is undefined, the * default key for Amazon S3 is used.

*/ inline ArtifactStore& WithEncryptionKey(EncryptionKey&& value) { SetEncryptionKey(std::move(value)); return *this;} private: ArtifactStoreType m_type; bool m_typeHasBeenSet = false; Aws::String m_location; bool m_locationHasBeenSet = false; EncryptionKey m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws