AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSyncConfigurationRequest.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 UpdateSyncConfigurationRequest();
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 "UpdateSyncConfiguration"; }
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 UpdateSyncConfigurationRequest& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
50 inline UpdateSyncConfigurationRequest& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
51 inline UpdateSyncConfigurationRequest& WithBranch(const char* value) { SetBranch(value); return *this;}
53
55
58 inline const Aws::String& GetConfigFile() const{ return m_configFile; }
59 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
60 inline void SetConfigFile(const Aws::String& value) { m_configFileHasBeenSet = true; m_configFile = value; }
61 inline void SetConfigFile(Aws::String&& value) { m_configFileHasBeenSet = true; m_configFile = std::move(value); }
62 inline void SetConfigFile(const char* value) { m_configFileHasBeenSet = true; m_configFile.assign(value); }
63 inline UpdateSyncConfigurationRequest& WithConfigFile(const Aws::String& value) { SetConfigFile(value); return *this;}
64 inline UpdateSyncConfigurationRequest& WithConfigFile(Aws::String&& value) { SetConfigFile(std::move(value)); return *this;}
65 inline UpdateSyncConfigurationRequest& WithConfigFile(const char* value) { SetConfigFile(value); return *this;}
67
69
72 inline const Aws::String& GetRepositoryLinkId() const{ return m_repositoryLinkId; }
73 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
74 inline void SetRepositoryLinkId(const Aws::String& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = value; }
75 inline void SetRepositoryLinkId(Aws::String&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::move(value); }
76 inline void SetRepositoryLinkId(const char* value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId.assign(value); }
78 inline UpdateSyncConfigurationRequest& WithRepositoryLinkId(Aws::String&& value) { SetRepositoryLinkId(std::move(value)); return *this;}
79 inline UpdateSyncConfigurationRequest& WithRepositoryLinkId(const char* value) { SetRepositoryLinkId(value); return *this;}
81
83
87 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
88 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
89 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
90 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
91 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
92 inline UpdateSyncConfigurationRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
93 inline UpdateSyncConfigurationRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
94 inline UpdateSyncConfigurationRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
96
98
101 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
102 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
103 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
104 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
105 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
106 inline UpdateSyncConfigurationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
107 inline UpdateSyncConfigurationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
108 inline UpdateSyncConfigurationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
110
112
115 inline const SyncConfigurationType& GetSyncType() const{ return m_syncType; }
116 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
117 inline void SetSyncType(const SyncConfigurationType& value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
118 inline void SetSyncType(SyncConfigurationType&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::move(value); }
120 inline UpdateSyncConfigurationRequest& WithSyncType(SyncConfigurationType&& value) { SetSyncType(std::move(value)); return *this;}
122
124
128 inline const PublishDeploymentStatus& GetPublishDeploymentStatus() const{ return m_publishDeploymentStatus; }
129 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
130 inline void SetPublishDeploymentStatus(const PublishDeploymentStatus& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
131 inline void SetPublishDeploymentStatus(PublishDeploymentStatus&& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = std::move(value); }
135
137
140 inline const TriggerResourceUpdateOn& GetTriggerResourceUpdateOn() const{ return m_triggerResourceUpdateOn; }
141 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
142 inline void SetTriggerResourceUpdateOn(const TriggerResourceUpdateOn& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
143 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn&& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = std::move(value); }
147 private:
148
149 Aws::String m_branch;
150 bool m_branchHasBeenSet = false;
151
152 Aws::String m_configFile;
153 bool m_configFileHasBeenSet = false;
154
155 Aws::String m_repositoryLinkId;
156 bool m_repositoryLinkIdHasBeenSet = false;
157
158 Aws::String m_resourceName;
159 bool m_resourceNameHasBeenSet = false;
160
161 Aws::String m_roleArn;
162 bool m_roleArnHasBeenSet = false;
163
164 SyncConfigurationType m_syncType;
165 bool m_syncTypeHasBeenSet = false;
166
167 PublishDeploymentStatus m_publishDeploymentStatus;
168 bool m_publishDeploymentStatusHasBeenSet = false;
169
170 TriggerResourceUpdateOn m_triggerResourceUpdateOn;
171 bool m_triggerResourceUpdateOnHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace CodeStarconnections
176} // namespace Aws
UpdateSyncConfigurationRequest & WithTriggerResourceUpdateOn(const TriggerResourceUpdateOn &value)
UpdateSyncConfigurationRequest & WithConfigFile(const Aws::String &value)
UpdateSyncConfigurationRequest & WithConfigFile(Aws::String &&value)
UpdateSyncConfigurationRequest & WithSyncType(SyncConfigurationType &&value)
UpdateSyncConfigurationRequest & WithRoleArn(Aws::String &&value)
AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSyncConfigurationRequest & WithPublishDeploymentStatus(const PublishDeploymentStatus &value)
UpdateSyncConfigurationRequest & WithResourceName(const char *value)
UpdateSyncConfigurationRequest & WithResourceName(Aws::String &&value)
AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override
UpdateSyncConfigurationRequest & WithRepositoryLinkId(const Aws::String &value)
UpdateSyncConfigurationRequest & WithBranch(const Aws::String &value)
UpdateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus &&value)
UpdateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn &&value)
UpdateSyncConfigurationRequest & WithRoleArn(const Aws::String &value)
UpdateSyncConfigurationRequest & WithConfigFile(const char *value)
UpdateSyncConfigurationRequest & WithRepositoryLinkId(const char *value)
UpdateSyncConfigurationRequest & WithSyncType(const SyncConfigurationType &value)
UpdateSyncConfigurationRequest & WithRepositoryLinkId(Aws::String &&value)
UpdateSyncConfigurationRequest & WithBranch(Aws::String &&value)
UpdateSyncConfigurationRequest & WithResourceName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String