AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 "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 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 UpdateSyncConfigurationRequest& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
51
53
56 inline const Aws::String& GetConfigFile() const { return m_configFile; }
57 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
58 template<typename ConfigFileT = Aws::String>
59 void SetConfigFile(ConfigFileT&& value) { m_configFileHasBeenSet = true; m_configFile = std::forward<ConfigFileT>(value); }
60 template<typename ConfigFileT = Aws::String>
61 UpdateSyncConfigurationRequest& WithConfigFile(ConfigFileT&& value) { SetConfigFile(std::forward<ConfigFileT>(value)); return *this;}
63
65
68 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
69 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
70 template<typename RepositoryLinkIdT = Aws::String>
71 void SetRepositoryLinkId(RepositoryLinkIdT&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value); }
72 template<typename RepositoryLinkIdT = Aws::String>
73 UpdateSyncConfigurationRequest& WithRepositoryLinkId(RepositoryLinkIdT&& value) { SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value)); return *this;}
75
77
81 inline const Aws::String& GetResourceName() const { return m_resourceName; }
82 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
83 template<typename ResourceNameT = Aws::String>
84 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
85 template<typename ResourceNameT = Aws::String>
86 UpdateSyncConfigurationRequest& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
88
90
93 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
94 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
95 template<typename RoleArnT = Aws::String>
96 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
97 template<typename RoleArnT = Aws::String>
98 UpdateSyncConfigurationRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
100
102
105 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
106 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
107 inline void SetSyncType(SyncConfigurationType value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
110
112
116 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
117 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
118 inline void SetPublishDeploymentStatus(PublishDeploymentStatus value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
121
123
126 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
127 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
128 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
131 private:
132
133 Aws::String m_branch;
134 bool m_branchHasBeenSet = false;
135
136 Aws::String m_configFile;
137 bool m_configFileHasBeenSet = false;
138
139 Aws::String m_repositoryLinkId;
140 bool m_repositoryLinkIdHasBeenSet = false;
141
142 Aws::String m_resourceName;
143 bool m_resourceNameHasBeenSet = false;
144
145 Aws::String m_roleArn;
146 bool m_roleArnHasBeenSet = false;
147
149 bool m_syncTypeHasBeenSet = false;
150
152 bool m_publishDeploymentStatusHasBeenSet = false;
153
155 bool m_triggerResourceUpdateOnHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace CodeStarconnections
160} // namespace Aws
UpdateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus value)
UpdateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
UpdateSyncConfigurationRequest & WithResourceName(ResourceNameT &&value)
AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override
AWS_CODESTARCONNECTIONS_API UpdateSyncConfigurationRequest()=default
UpdateSyncConfigurationRequest & WithSyncType(SyncConfigurationType value)
UpdateSyncConfigurationRequest & WithConfigFile(ConfigFileT &&value)
UpdateSyncConfigurationRequest & WithRepositoryLinkId(RepositoryLinkIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String