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

Detailed data of the service sync configuration.

See Also:

* AWS * API Reference

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

The name of the code repository branch that holds the service code Proton * will sync with.

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

The name of the code repository branch that holds the service code Proton * will sync with.

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

The name of the code repository branch that holds the service code Proton * will sync with.

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

The name of the code repository branch that holds the service code Proton * will sync with.

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

The name of the code repository branch that holds the service code Proton * will sync with.

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

The name of the code repository branch that holds the service code Proton * will sync with.

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

The name of the code repository branch that holds the service code Proton * will sync with.

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

The name of the code repository branch that holds the service code Proton * will sync with.

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

The file path to the service sync configuration file.

*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *

The file path to the service sync configuration file.

*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *

The file path to the service sync configuration file.

*/ inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *

The file path to the service sync configuration file.

*/ inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *

The file path to the service sync configuration file.

*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *

The file path to the service sync configuration file.

*/ inline ServiceSyncConfig& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *

The file path to the service sync configuration file.

*/ inline ServiceSyncConfig& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *

The file path to the service sync configuration file.

*/ inline ServiceSyncConfig& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *

The name of the code repository that holds the service code Proton will sync * with.

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

The name of the code repository that holds the service code Proton will sync * with.

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

The name of the code repository that holds the service code Proton will sync * with.

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

The name of the code repository that holds the service code Proton will sync * with.

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

The name of the code repository that holds the service code Proton will sync * with.

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

The name of the code repository that holds the service code Proton will sync * with.

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

The name of the code repository that holds the service code Proton will sync * with.

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

The name of the code repository that holds the service code Proton will sync * with.

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

The name of the repository provider that holds the repository Proton will * sync with.

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

The name of the repository provider that holds the repository Proton will * sync with.

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

The name of the repository provider that holds the repository Proton will * sync with.

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

The name of the repository provider that holds the repository Proton will * sync with.

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

The name of the repository provider that holds the repository Proton will * sync with.

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

The name of the repository provider that holds the repository Proton will * sync with.

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

The name of the service that the service instance is added to.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the service that the service instance is added to.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service that the service instance is added to.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the service that the service instance is added to.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the service that the service instance is added to.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the service that the service instance is added to.

*/ inline ServiceSyncConfig& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service that the service instance is added to.

*/ inline ServiceSyncConfig& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the service that the service instance is added to.

*/ inline ServiceSyncConfig& WithServiceName(const char* value) { SetServiceName(value); return *this;} private: Aws::String m_branch; bool m_branchHasBeenSet = false; Aws::String m_filePath; bool m_filePathHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; RepositoryProvider m_repositoryProvider; bool m_repositoryProviderHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws