/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Proton { namespace Model { /** */ class CreateRepositoryRequest : public ProtonRequest { public: AWS_PROTON_API CreateRepositoryRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateRepository"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account. For more information, see Setting * up for Proton in the Proton User Guide.

*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account. For more information, see Setting * up for Proton in the Proton User Guide.

*/ inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account. For more information, see Setting * up for Proton in the Proton User Guide.

*/ inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; } /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account. For more information, see Setting * up for Proton in the Proton User Guide.

*/ inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account. For more information, see Setting * up for Proton in the Proton User Guide.

*/ inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account. For more information, see Setting * up for Proton in the Proton User Guide.

*/ inline CreateRepositoryRequest& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account. For more information, see Setting * up for Proton in the Proton User Guide.

*/ inline CreateRepositoryRequest& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account. For more information, see Setting * up for Proton in the Proton User Guide.

*/ inline CreateRepositoryRequest& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} /** *

The ARN of your customer Amazon Web Services Key Management Service (Amazon * Web Services KMS) key.

*/ inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; } /** *

The ARN of your customer Amazon Web Services Key Management Service (Amazon * Web Services KMS) key.

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

The ARN of your customer Amazon Web Services Key Management Service (Amazon * Web Services KMS) key.

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

The ARN of your customer Amazon Web Services Key Management Service (Amazon * Web Services KMS) key.

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

The ARN of your customer Amazon Web Services Key Management Service (Amazon * Web Services KMS) key.

*/ inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); } /** *

The ARN of your customer Amazon Web Services Key Management Service (Amazon * Web Services KMS) key.

*/ inline CreateRepositoryRequest& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;} /** *

The ARN of your customer Amazon Web Services Key Management Service (Amazon * Web Services KMS) key.

*/ inline CreateRepositoryRequest& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *

The ARN of your customer Amazon Web Services Key Management Service (Amazon * Web Services KMS) key.

*/ inline CreateRepositoryRequest& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;} /** *

The repository name (for example, myrepos/myrepo).

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The repository name (for example, myrepos/myrepo).

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The repository name (for example, myrepos/myrepo).

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The repository name (for example, myrepos/myrepo).

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The repository name (for example, myrepos/myrepo).

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The repository name (for example, myrepos/myrepo).

*/ inline CreateRepositoryRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The repository name (for example, myrepos/myrepo).

*/ inline CreateRepositoryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The repository name (for example, myrepos/myrepo).

*/ inline CreateRepositoryRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The repository provider.

*/ inline const RepositoryProvider& GetProvider() const{ return m_provider; } /** *

The repository provider.

*/ inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; } /** *

The repository provider.

*/ inline void SetProvider(const RepositoryProvider& value) { m_providerHasBeenSet = true; m_provider = value; } /** *

The repository provider.

*/ inline void SetProvider(RepositoryProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); } /** *

The repository provider.

*/ inline CreateRepositoryRequest& WithProvider(const RepositoryProvider& value) { SetProvider(value); return *this;} /** *

The repository provider.

*/ inline CreateRepositoryRequest& WithProvider(RepositoryProvider&& value) { SetProvider(std::move(value)); return *this;} /** *

An optional list of metadata items that you can associate with the Proton * repository. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

An optional list of metadata items that you can associate with the Proton * repository. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

An optional list of metadata items that you can associate with the Proton * repository. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

An optional list of metadata items that you can associate with the Proton * repository. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

An optional list of metadata items that you can associate with the Proton * repository. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateRepositoryRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

An optional list of metadata items that you can associate with the Proton * repository. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateRepositoryRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

An optional list of metadata items that you can associate with the Proton * repository. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateRepositoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An optional list of metadata items that you can associate with the Proton * repository. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateRepositoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_connectionArn; bool m_connectionArnHasBeenSet = false; Aws::String m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; RepositoryProvider m_provider; bool m_providerHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws