AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetRepositorySyncStatusRequest.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/ProtonRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/proton/model/RepositoryProvider.h>
11#include <aws/proton/model/SyncType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Proton
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PROTON_API GetRepositorySyncStatusRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetRepositorySyncStatus"; }
33
34 AWS_PROTON_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetBranch() const { return m_branch; }
44 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
45 template<typename BranchT = Aws::String>
46 void SetBranch(BranchT&& value) { m_branchHasBeenSet = true; m_branch = std::forward<BranchT>(value); }
47 template<typename BranchT = Aws::String>
48 GetRepositorySyncStatusRequest& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
50
52
55 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
56 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
57 template<typename RepositoryNameT = Aws::String>
58 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
59 template<typename RepositoryNameT = Aws::String>
60 GetRepositorySyncStatusRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
62
64
67 inline RepositoryProvider GetRepositoryProvider() const { return m_repositoryProvider; }
68 inline bool RepositoryProviderHasBeenSet() const { return m_repositoryProviderHasBeenSet; }
69 inline void SetRepositoryProvider(RepositoryProvider value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = value; }
72
74
77 inline SyncType GetSyncType() const { return m_syncType; }
78 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
79 inline void SetSyncType(SyncType value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
80 inline GetRepositorySyncStatusRequest& WithSyncType(SyncType value) { SetSyncType(value); return *this;}
82 private:
83
84 Aws::String m_branch;
85 bool m_branchHasBeenSet = false;
86
87 Aws::String m_repositoryName;
88 bool m_repositoryNameHasBeenSet = false;
89
91 bool m_repositoryProviderHasBeenSet = false;
92
93 SyncType m_syncType{SyncType::NOT_SET};
94 bool m_syncTypeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Proton
99} // namespace Aws
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PROTON_API GetRepositorySyncStatusRequest()=default
GetRepositorySyncStatusRequest & WithSyncType(SyncType value)
GetRepositorySyncStatusRequest & WithRepositoryProvider(RepositoryProvider value)
AWS_PROTON_API Aws::String SerializePayload() const override
GetRepositorySyncStatusRequest & WithRepositoryName(RepositoryNameT &&value)
GetRepositorySyncStatusRequest & WithBranch(BranchT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String