/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Proton { namespace Model { /** */ class CreateTemplateSyncConfigRequest : public ProtonRequest { public: AWS_PROTON_API CreateTemplateSyncConfigRequest(); // 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 "CreateTemplateSyncConfig"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The repository branch for your template.

*/ inline const Aws::String& GetBranch() const{ return m_branch; } /** *

The repository branch for your template.

*/ inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; } /** *

The repository branch for your template.

*/ inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; } /** *

The repository branch for your template.

*/ inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); } /** *

The repository branch for your template.

*/ inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); } /** *

The repository branch for your template.

*/ inline CreateTemplateSyncConfigRequest& WithBranch(const Aws::String& value) { SetBranch(value); return *this;} /** *

The repository branch for your template.

*/ inline CreateTemplateSyncConfigRequest& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;} /** *

The repository branch for your template.

*/ inline CreateTemplateSyncConfigRequest& WithBranch(const char* value) { SetBranch(value); return *this;} /** *

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

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

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

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

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

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

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

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

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

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

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

*/ inline CreateTemplateSyncConfigRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

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

*/ inline CreateTemplateSyncConfigRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

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

*/ inline CreateTemplateSyncConfigRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The provider type for your repository.

*/ inline const RepositoryProvider& GetRepositoryProvider() const{ return m_repositoryProvider; } /** *

The provider type for your repository.

*/ inline bool RepositoryProviderHasBeenSet() const { return m_repositoryProviderHasBeenSet; } /** *

The provider type for your repository.

*/ inline void SetRepositoryProvider(const RepositoryProvider& value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = value; } /** *

The provider type for your repository.

*/ inline void SetRepositoryProvider(RepositoryProvider&& value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = std::move(value); } /** *

The provider type for your repository.

*/ inline CreateTemplateSyncConfigRequest& WithRepositoryProvider(const RepositoryProvider& value) { SetRepositoryProvider(value); return *this;} /** *

The provider type for your repository.

*/ inline CreateTemplateSyncConfigRequest& WithRepositoryProvider(RepositoryProvider&& value) { SetRepositoryProvider(std::move(value)); return *this;} /** *

A repository subdirectory path to your template bundle directory. When * included, Proton limits the template bundle search to this repository * directory.

*/ inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; } /** *

A repository subdirectory path to your template bundle directory. When * included, Proton limits the template bundle search to this repository * directory.

*/ inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; } /** *

A repository subdirectory path to your template bundle directory. When * included, Proton limits the template bundle search to this repository * directory.

*/ inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; } /** *

A repository subdirectory path to your template bundle directory. When * included, Proton limits the template bundle search to this repository * directory.

*/ inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); } /** *

A repository subdirectory path to your template bundle directory. When * included, Proton limits the template bundle search to this repository * directory.

*/ inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); } /** *

A repository subdirectory path to your template bundle directory. When * included, Proton limits the template bundle search to this repository * directory.

*/ inline CreateTemplateSyncConfigRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;} /** *

A repository subdirectory path to your template bundle directory. When * included, Proton limits the template bundle search to this repository * directory.

*/ inline CreateTemplateSyncConfigRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;} /** *

A repository subdirectory path to your template bundle directory. When * included, Proton limits the template bundle search to this repository * directory.

*/ inline CreateTemplateSyncConfigRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;} /** *

The name of your registered template.

*/ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** *

The name of your registered template.

*/ inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } /** *

The name of your registered template.

*/ inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } /** *

The name of your registered template.

*/ inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } /** *

The name of your registered template.

*/ inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } /** *

The name of your registered template.

*/ inline CreateTemplateSyncConfigRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of your registered template.

*/ inline CreateTemplateSyncConfigRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *

The name of your registered template.

*/ inline CreateTemplateSyncConfigRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} /** *

The type of the registered template.

*/ inline const TemplateType& GetTemplateType() const{ return m_templateType; } /** *

The type of the registered template.

*/ inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; } /** *

The type of the registered template.

*/ inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; } /** *

The type of the registered template.

*/ inline void SetTemplateType(TemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); } /** *

The type of the registered template.

*/ inline CreateTemplateSyncConfigRequest& WithTemplateType(const TemplateType& value) { SetTemplateType(value); return *this;} /** *

The type of the registered template.

*/ inline CreateTemplateSyncConfigRequest& WithTemplateType(TemplateType&& value) { SetTemplateType(std::move(value)); return *this;} private: Aws::String m_branch; bool m_branchHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; RepositoryProvider m_repositoryProvider; bool m_repositoryProviderHasBeenSet = false; Aws::String m_subdirectory; bool m_subdirectoryHasBeenSet = false; Aws::String m_templateName; bool m_templateNameHasBeenSet = false; TemplateType m_templateType; bool m_templateTypeHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws