AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; }
47 inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); }
48 inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); }
49 inline CreateSyncConfigurationRequest& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
50 inline CreateSyncConfigurationRequest& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
51 inline CreateSyncConfigurationRequest& WithBranch(const char* value) { SetBranch(value); return *this;}
53
55
60 inline const Aws::String& GetConfigFile() const{ return m_configFile; }
61 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
62 inline void SetConfigFile(const Aws::String& value) { m_configFileHasBeenSet = true; m_configFile = value; }
63 inline void SetConfigFile(Aws::String&& value) { m_configFileHasBeenSet = true; m_configFile = std::move(value); }
64 inline void SetConfigFile(const char* value) { m_configFileHasBeenSet = true; m_configFile.assign(value); }
65 inline CreateSyncConfigurationRequest& WithConfigFile(const Aws::String& value) { SetConfigFile(value); return *this;}
66 inline CreateSyncConfigurationRequest& WithConfigFile(Aws::String&& value) { SetConfigFile(std::move(value)); return *this;}
67 inline CreateSyncConfigurationRequest& WithConfigFile(const char* value) { SetConfigFile(value); return *this;}
69
71
76 inline const Aws::String& GetRepositoryLinkId() const{ return m_repositoryLinkId; }
77 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
78 inline void SetRepositoryLinkId(const Aws::String& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = value; }
79 inline void SetRepositoryLinkId(Aws::String&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::move(value); }
80 inline void SetRepositoryLinkId(const char* value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId.assign(value); }
82 inline CreateSyncConfigurationRequest& WithRepositoryLinkId(Aws::String&& value) { SetRepositoryLinkId(std::move(value)); return *this;}
83 inline CreateSyncConfigurationRequest& WithRepositoryLinkId(const char* value) { SetRepositoryLinkId(value); return *this;}
85
87
92 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
93 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
94 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
95 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
96 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
97 inline CreateSyncConfigurationRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
98 inline CreateSyncConfigurationRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
99 inline CreateSyncConfigurationRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
101
103
107 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
108 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
109 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
110 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
111 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
112 inline CreateSyncConfigurationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
113 inline CreateSyncConfigurationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
114 inline CreateSyncConfigurationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
116
118
121 inline const SyncConfigurationType& GetSyncType() const{ return m_syncType; }
122 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
123 inline void SetSyncType(const SyncConfigurationType& value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
124 inline void SetSyncType(SyncConfigurationType&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::move(value); }
126 inline CreateSyncConfigurationRequest& WithSyncType(SyncConfigurationType&& value) { SetSyncType(std::move(value)); return *this;}
128
130
134 inline const PublishDeploymentStatus& GetPublishDeploymentStatus() const{ return m_publishDeploymentStatus; }
135 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
136 inline void SetPublishDeploymentStatus(const PublishDeploymentStatus& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
137 inline void SetPublishDeploymentStatus(PublishDeploymentStatus&& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = std::move(value); }
141
143
146 inline const TriggerResourceUpdateOn& GetTriggerResourceUpdateOn() const{ return m_triggerResourceUpdateOn; }
147 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
148 inline void SetTriggerResourceUpdateOn(const TriggerResourceUpdateOn& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
149 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn&& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = std::move(value); }
153 private:
154
155 Aws::String m_branch;
156 bool m_branchHasBeenSet = false;
157
158 Aws::String m_configFile;
159 bool m_configFileHasBeenSet = false;
160
161 Aws::String m_repositoryLinkId;
162 bool m_repositoryLinkIdHasBeenSet = false;
163
164 Aws::String m_resourceName;
165 bool m_resourceNameHasBeenSet = false;
166
167 Aws::String m_roleArn;
168 bool m_roleArnHasBeenSet = false;
169
170 SyncConfigurationType m_syncType;
171 bool m_syncTypeHasBeenSet = false;
172
173 PublishDeploymentStatus m_publishDeploymentStatus;
174 bool m_publishDeploymentStatusHasBeenSet = false;
175
176 TriggerResourceUpdateOn m_triggerResourceUpdateOn;
177 bool m_triggerResourceUpdateOnHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace CodeStarconnections
182} // namespace Aws
CreateSyncConfigurationRequest & WithSyncType(const SyncConfigurationType &value)
CreateSyncConfigurationRequest & WithResourceName(const char *value)
CreateSyncConfigurationRequest & WithRepositoryLinkId(const char *value)
CreateSyncConfigurationRequest & WithConfigFile(const char *value)
CreateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus &&value)
CreateSyncConfigurationRequest & WithRoleArn(const Aws::String &value)
CreateSyncConfigurationRequest & WithConfigFile(Aws::String &&value)
CreateSyncConfigurationRequest & WithResourceName(Aws::String &&value)
CreateSyncConfigurationRequest & WithRepositoryLinkId(Aws::String &&value)
AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSyncConfigurationRequest & WithTriggerResourceUpdateOn(const TriggerResourceUpdateOn &value)
CreateSyncConfigurationRequest & WithSyncType(SyncConfigurationType &&value)
CreateSyncConfigurationRequest & WithBranch(const Aws::String &value)
CreateSyncConfigurationRequest & WithBranch(Aws::String &&value)
AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override
CreateSyncConfigurationRequest & WithRoleArn(Aws::String &&value)
CreateSyncConfigurationRequest & WithRepositoryLinkId(const Aws::String &value)
CreateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn &&value)
CreateSyncConfigurationRequest & WithConfigFile(const Aws::String &value)
CreateSyncConfigurationRequest & WithPublishDeploymentStatus(const PublishDeploymentStatus &value)
CreateSyncConfigurationRequest & WithResourceName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String