/** * 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 GetRepositorySyncStatusRequest : public ProtonRequest { public: AWS_PROTON_API GetRepositorySyncStatusRequest(); // 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 "GetRepositorySyncStatus"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The repository branch.

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

The repository branch.

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

The repository branch.

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

The repository branch.

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

The repository branch.

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

The repository branch.

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

The repository branch.

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

The repository branch.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository provider.

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

The repository provider.

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

The repository provider.

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

The repository provider.

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

The repository provider.

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

The repository provider.

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

The repository sync type.

*/ inline const SyncType& GetSyncType() const{ return m_syncType; } /** *

The repository sync type.

*/ inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; } /** *

The repository sync type.

*/ inline void SetSyncType(const SyncType& value) { m_syncTypeHasBeenSet = true; m_syncType = value; } /** *

The repository sync type.

*/ inline void SetSyncType(SyncType&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::move(value); } /** *

The repository sync type.

*/ inline GetRepositorySyncStatusRequest& WithSyncType(const SyncType& value) { SetSyncType(value); return *this;} /** *

The repository sync type.

*/ inline GetRepositorySyncStatusRequest& WithSyncType(SyncType&& value) { SetSyncType(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; SyncType m_syncType; bool m_syncTypeHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws