AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSyncConfigurationRequest.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/CodeStarconnectionsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codestar-connections/model/SyncConfigurationType.h>
11#include <aws/codestar-connections/model/PublishDeploymentStatus.h>
12#include <aws/codestar-connections/model/TriggerResourceUpdateOn.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CodeStarconnections
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CODESTARCONNECTIONS_API CreateSyncConfigurationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSyncConfiguration"; }
34
35 AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override;
36
37 AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetBranch() const { return m_branch; }
45 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
46 template<typename BranchT = Aws::String>
47 void SetBranch(BranchT&& value) { m_branchHasBeenSet = true; m_branch = std::forward<BranchT>(value); }
48 template<typename BranchT = Aws::String>
49 CreateSyncConfigurationRequest& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
51
53
58 inline const Aws::String& GetConfigFile() const { return m_configFile; }
59 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
60 template<typename ConfigFileT = Aws::String>
61 void SetConfigFile(ConfigFileT&& value) { m_configFileHasBeenSet = true; m_configFile = std::forward<ConfigFileT>(value); }
62 template<typename ConfigFileT = Aws::String>
63 CreateSyncConfigurationRequest& WithConfigFile(ConfigFileT&& value) { SetConfigFile(std::forward<ConfigFileT>(value)); return *this;}
65
67
72 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
73 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
74 template<typename RepositoryLinkIdT = Aws::String>
75 void SetRepositoryLinkId(RepositoryLinkIdT&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value); }
76 template<typename RepositoryLinkIdT = Aws::String>
77 CreateSyncConfigurationRequest& WithRepositoryLinkId(RepositoryLinkIdT&& value) { SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value)); return *this;}
79
81
86 inline const Aws::String& GetResourceName() const { return m_resourceName; }
87 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
88 template<typename ResourceNameT = Aws::String>
89 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
90 template<typename ResourceNameT = Aws::String>
91 CreateSyncConfigurationRequest& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
93
95
99 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
100 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
101 template<typename RoleArnT = Aws::String>
102 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
103 template<typename RoleArnT = Aws::String>
104 CreateSyncConfigurationRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
106
108
111 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
112 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
113 inline void SetSyncType(SyncConfigurationType value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
116
118
122 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
123 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
124 inline void SetPublishDeploymentStatus(PublishDeploymentStatus value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
127
129
132 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
133 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
134 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
137 private:
138
139 Aws::String m_branch;
140 bool m_branchHasBeenSet = false;
141
142 Aws::String m_configFile;
143 bool m_configFileHasBeenSet = false;
144
145 Aws::String m_repositoryLinkId;
146 bool m_repositoryLinkIdHasBeenSet = false;
147
148 Aws::String m_resourceName;
149 bool m_resourceNameHasBeenSet = false;
150
151 Aws::String m_roleArn;
152 bool m_roleArnHasBeenSet = false;
153
155 bool m_syncTypeHasBeenSet = false;
156
158 bool m_publishDeploymentStatusHasBeenSet = false;
159
161 bool m_triggerResourceUpdateOnHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace CodeStarconnections
166} // namespace Aws
CreateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
CreateSyncConfigurationRequest & WithSyncType(SyncConfigurationType value)
CreateSyncConfigurationRequest & WithRepositoryLinkId(RepositoryLinkIdT &&value)
CreateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus value)
AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSyncConfigurationRequest & WithResourceName(ResourceNameT &&value)
AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override
CreateSyncConfigurationRequest & WithConfigFile(ConfigFileT &&value)
AWS_CODESTARCONNECTIONS_API CreateSyncConfigurationRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String