AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
49 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
50 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
52 inline CreateEnvironmentAccountConnectionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline CreateEnvironmentAccountConnectionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
62 inline const Aws::String& GetCodebuildRoleArn() const{ return m_codebuildRoleArn; }
63 inline bool CodebuildRoleArnHasBeenSet() const { return m_codebuildRoleArnHasBeenSet; }
64 inline void SetCodebuildRoleArn(const Aws::String& value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = value; }
65 inline void SetCodebuildRoleArn(Aws::String&& value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = std::move(value); }
66 inline void SetCodebuildRoleArn(const char* value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn.assign(value); }
71
73
83 inline const Aws::String& GetComponentRoleArn() const{ return m_componentRoleArn; }
84 inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; }
85 inline void SetComponentRoleArn(const Aws::String& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = value; }
86 inline void SetComponentRoleArn(Aws::String&& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = std::move(value); }
87 inline void SetComponentRoleArn(const char* value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn.assign(value); }
92
94
98 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
99 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
100 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
101 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
102 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
105 inline CreateEnvironmentAccountConnectionRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
107
109
116 inline const Aws::String& GetManagementAccountId() const{ return m_managementAccountId; }
117 inline bool ManagementAccountIdHasBeenSet() const { return m_managementAccountIdHasBeenSet; }
118 inline void SetManagementAccountId(const Aws::String& value) { m_managementAccountIdHasBeenSet = true; m_managementAccountId = value; }
119 inline void SetManagementAccountId(Aws::String&& value) { m_managementAccountIdHasBeenSet = true; m_managementAccountId = std::move(value); }
120 inline void SetManagementAccountId(const char* value) { m_managementAccountIdHasBeenSet = true; m_managementAccountId.assign(value); }
125
127
132 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
133 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
134 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
135 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
136 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
138 inline CreateEnvironmentAccountConnectionRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
139 inline CreateEnvironmentAccountConnectionRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
141
143
150 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
154 inline CreateEnvironmentAccountConnectionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
155 inline CreateEnvironmentAccountConnectionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
156 inline CreateEnvironmentAccountConnectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
157 inline CreateEnvironmentAccountConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
159 private:
160
161 Aws::String m_clientToken;
162 bool m_clientTokenHasBeenSet = false;
163
164 Aws::String m_codebuildRoleArn;
165 bool m_codebuildRoleArnHasBeenSet = false;
166
167 Aws::String m_componentRoleArn;
168 bool m_componentRoleArnHasBeenSet = false;
169
170 Aws::String m_environmentName;
171 bool m_environmentNameHasBeenSet = false;
172
173 Aws::String m_managementAccountId;
174 bool m_managementAccountIdHasBeenSet = false;
175
176 Aws::String m_roleArn;
177 bool m_roleArnHasBeenSet = false;
178
179 Aws::Vector<Tag> m_tags;
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace Proton
185} // namespace Aws
CreateEnvironmentAccountConnectionRequest & WithManagementAccountId(const char *value)
CreateEnvironmentAccountConnectionRequest & WithRoleArn(Aws::String &&value)
CreateEnvironmentAccountConnectionRequest & WithEnvironmentName(const Aws::String &value)
CreateEnvironmentAccountConnectionRequest & WithManagementAccountId(Aws::String &&value)
CreateEnvironmentAccountConnectionRequest & WithComponentRoleArn(Aws::String &&value)
CreateEnvironmentAccountConnectionRequest & WithEnvironmentName(Aws::String &&value)
CreateEnvironmentAccountConnectionRequest & WithRoleArn(const Aws::String &value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEnvironmentAccountConnectionRequest & WithClientToken(const Aws::String &value)
CreateEnvironmentAccountConnectionRequest & WithManagementAccountId(const Aws::String &value)
CreateEnvironmentAccountConnectionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEnvironmentAccountConnectionRequest & WithRoleArn(const char *value)
CreateEnvironmentAccountConnectionRequest & WithCodebuildRoleArn(Aws::String &&value)
CreateEnvironmentAccountConnectionRequest & WithClientToken(Aws::String &&value)
CreateEnvironmentAccountConnectionRequest & WithCodebuildRoleArn(const Aws::String &value)
CreateEnvironmentAccountConnectionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEnvironmentAccountConnectionRequest & AddTags(const Tag &value)
CreateEnvironmentAccountConnectionRequest & WithComponentRoleArn(const Aws::String &value)
CreateEnvironmentAccountConnectionRequest & WithEnvironmentName(const char *value)
CreateEnvironmentAccountConnectionRequest & WithClientToken(const char *value)
CreateEnvironmentAccountConnectionRequest & WithCodebuildRoleArn(const char *value)
AWS_PROTON_API Aws::String SerializePayload() const override
CreateEnvironmentAccountConnectionRequest & WithComponentRoleArn(const char *value)
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