AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEnvironmentAccountConnectionRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/proton/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Proton
18{
19namespace Model
20{
21
25 {
26 public:
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 "CreateEnvironmentAccountConnection"; }
34
35 AWS_PROTON_API Aws::String SerializePayload() const override;
36
38
39
41
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template<typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
50 template<typename ClientTokenT = Aws::String>
51 CreateEnvironmentAccountConnectionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
53
55
60 inline const Aws::String& GetCodebuildRoleArn() const { return m_codebuildRoleArn; }
61 inline bool CodebuildRoleArnHasBeenSet() const { return m_codebuildRoleArnHasBeenSet; }
62 template<typename CodebuildRoleArnT = Aws::String>
63 void SetCodebuildRoleArn(CodebuildRoleArnT&& value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = std::forward<CodebuildRoleArnT>(value); }
64 template<typename CodebuildRoleArnT = Aws::String>
65 CreateEnvironmentAccountConnectionRequest& WithCodebuildRoleArn(CodebuildRoleArnT&& value) { SetCodebuildRoleArn(std::forward<CodebuildRoleArnT>(value)); return *this;}
67
69
79 inline const Aws::String& GetComponentRoleArn() const { return m_componentRoleArn; }
80 inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; }
81 template<typename ComponentRoleArnT = Aws::String>
82 void SetComponentRoleArn(ComponentRoleArnT&& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = std::forward<ComponentRoleArnT>(value); }
83 template<typename ComponentRoleArnT = Aws::String>
84 CreateEnvironmentAccountConnectionRequest& WithComponentRoleArn(ComponentRoleArnT&& value) { SetComponentRoleArn(std::forward<ComponentRoleArnT>(value)); return *this;}
86
88
92 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
93 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
94 template<typename EnvironmentNameT = Aws::String>
95 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
96 template<typename EnvironmentNameT = Aws::String>
97 CreateEnvironmentAccountConnectionRequest& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
99
101
108 inline const Aws::String& GetManagementAccountId() const { return m_managementAccountId; }
109 inline bool ManagementAccountIdHasBeenSet() const { return m_managementAccountIdHasBeenSet; }
110 template<typename ManagementAccountIdT = Aws::String>
111 void SetManagementAccountId(ManagementAccountIdT&& value) { m_managementAccountIdHasBeenSet = true; m_managementAccountId = std::forward<ManagementAccountIdT>(value); }
112 template<typename ManagementAccountIdT = Aws::String>
113 CreateEnvironmentAccountConnectionRequest& WithManagementAccountId(ManagementAccountIdT&& value) { SetManagementAccountId(std::forward<ManagementAccountIdT>(value)); return *this;}
115
117
122 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
123 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
124 template<typename RoleArnT = Aws::String>
125 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
126 template<typename RoleArnT = Aws::String>
127 CreateEnvironmentAccountConnectionRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
129
131
138 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template<typename TagsT = Aws::Vector<Tag>>
141 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
142 template<typename TagsT = Aws::Vector<Tag>>
143 CreateEnvironmentAccountConnectionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
144 template<typename TagsT = Tag>
145 CreateEnvironmentAccountConnectionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
147 private:
148
150 bool m_clientTokenHasBeenSet = true;
151
152 Aws::String m_codebuildRoleArn;
153 bool m_codebuildRoleArnHasBeenSet = false;
154
155 Aws::String m_componentRoleArn;
156 bool m_componentRoleArnHasBeenSet = false;
157
158 Aws::String m_environmentName;
159 bool m_environmentNameHasBeenSet = false;
160
161 Aws::String m_managementAccountId;
162 bool m_managementAccountIdHasBeenSet = false;
163
164 Aws::String m_roleArn;
165 bool m_roleArnHasBeenSet = false;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_tagsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Proton
173} // namespace Aws
CreateEnvironmentAccountConnectionRequest & WithCodebuildRoleArn(CodebuildRoleArnT &&value)
CreateEnvironmentAccountConnectionRequest & WithClientToken(ClientTokenT &&value)
CreateEnvironmentAccountConnectionRequest & WithEnvironmentName(EnvironmentNameT &&value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEnvironmentAccountConnectionRequest & WithComponentRoleArn(ComponentRoleArnT &&value)
CreateEnvironmentAccountConnectionRequest & WithRoleArn(RoleArnT &&value)
CreateEnvironmentAccountConnectionRequest & WithManagementAccountId(ManagementAccountIdT &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector