AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInstanceProfileRequest.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/dms/DatabaseMigrationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dms/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DatabaseMigrationService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DATABASEMIGRATIONSERVICE_API CreateInstanceProfileRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateInstanceProfile"; }
33
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
46 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
47 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
48 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
49 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
50 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
52 inline CreateInstanceProfileRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
53 inline CreateInstanceProfileRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
55
57
65 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
66 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
67 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
68 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
69 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
70 inline CreateInstanceProfileRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
71 inline CreateInstanceProfileRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
72 inline CreateInstanceProfileRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
74
76
82 inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
83 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
84 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
87
89
92 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateInstanceProfileRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
97 inline CreateInstanceProfileRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateInstanceProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
99 inline CreateInstanceProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
101
103
111 inline const Aws::String& GetNetworkType() const{ return m_networkType; }
112 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
113 inline void SetNetworkType(const Aws::String& value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
114 inline void SetNetworkType(Aws::String&& value) { m_networkTypeHasBeenSet = true; m_networkType = std::move(value); }
115 inline void SetNetworkType(const char* value) { m_networkTypeHasBeenSet = true; m_networkType.assign(value); }
116 inline CreateInstanceProfileRequest& WithNetworkType(const Aws::String& value) { SetNetworkType(value); return *this;}
117 inline CreateInstanceProfileRequest& WithNetworkType(Aws::String&& value) { SetNetworkType(std::move(value)); return *this;}
118 inline CreateInstanceProfileRequest& WithNetworkType(const char* value) { SetNetworkType(value); return *this;}
120
122
125 inline const Aws::String& GetInstanceProfileName() const{ return m_instanceProfileName; }
126 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
127 inline void SetInstanceProfileName(const Aws::String& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = value; }
128 inline void SetInstanceProfileName(Aws::String&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::move(value); }
129 inline void SetInstanceProfileName(const char* value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName.assign(value); }
132 inline CreateInstanceProfileRequest& WithInstanceProfileName(const char* value) { SetInstanceProfileName(value); return *this;}
134
136
139 inline const Aws::String& GetDescription() const{ return m_description; }
140 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
141 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
142 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
143 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
144 inline CreateInstanceProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
145 inline CreateInstanceProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
146 inline CreateInstanceProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
148
150
153 inline const Aws::String& GetSubnetGroupIdentifier() const{ return m_subnetGroupIdentifier; }
154 inline bool SubnetGroupIdentifierHasBeenSet() const { return m_subnetGroupIdentifierHasBeenSet; }
155 inline void SetSubnetGroupIdentifier(const Aws::String& value) { m_subnetGroupIdentifierHasBeenSet = true; m_subnetGroupIdentifier = value; }
156 inline void SetSubnetGroupIdentifier(Aws::String&& value) { m_subnetGroupIdentifierHasBeenSet = true; m_subnetGroupIdentifier = std::move(value); }
157 inline void SetSubnetGroupIdentifier(const char* value) { m_subnetGroupIdentifierHasBeenSet = true; m_subnetGroupIdentifier.assign(value); }
160 inline CreateInstanceProfileRequest& WithSubnetGroupIdentifier(const char* value) { SetSubnetGroupIdentifier(value); return *this;}
162
164
169 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroups() const{ return m_vpcSecurityGroups; }
170 inline bool VpcSecurityGroupsHasBeenSet() const { return m_vpcSecurityGroupsHasBeenSet; }
171 inline void SetVpcSecurityGroups(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups = value; }
172 inline void SetVpcSecurityGroups(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups = std::move(value); }
175 inline CreateInstanceProfileRequest& AddVpcSecurityGroups(const Aws::String& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.push_back(value); return *this; }
176 inline CreateInstanceProfileRequest& AddVpcSecurityGroups(Aws::String&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.push_back(std::move(value)); return *this; }
177 inline CreateInstanceProfileRequest& AddVpcSecurityGroups(const char* value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.push_back(value); return *this; }
179 private:
180
181 Aws::String m_availabilityZone;
182 bool m_availabilityZoneHasBeenSet = false;
183
184 Aws::String m_kmsKeyArn;
185 bool m_kmsKeyArnHasBeenSet = false;
186
187 bool m_publiclyAccessible;
188 bool m_publiclyAccessibleHasBeenSet = false;
189
190 Aws::Vector<Tag> m_tags;
191 bool m_tagsHasBeenSet = false;
192
193 Aws::String m_networkType;
194 bool m_networkTypeHasBeenSet = false;
195
196 Aws::String m_instanceProfileName;
197 bool m_instanceProfileNameHasBeenSet = false;
198
199 Aws::String m_description;
200 bool m_descriptionHasBeenSet = false;
201
202 Aws::String m_subnetGroupIdentifier;
203 bool m_subnetGroupIdentifierHasBeenSet = false;
204
205 Aws::Vector<Aws::String> m_vpcSecurityGroups;
206 bool m_vpcSecurityGroupsHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace DatabaseMigrationService
211} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
CreateInstanceProfileRequest & AddVpcSecurityGroups(const Aws::String &value)
CreateInstanceProfileRequest & WithKmsKeyArn(const Aws::String &value)
CreateInstanceProfileRequest & WithSubnetGroupIdentifier(const char *value)
CreateInstanceProfileRequest & WithNetworkType(Aws::String &&value)
CreateInstanceProfileRequest & WithSubnetGroupIdentifier(Aws::String &&value)
CreateInstanceProfileRequest & AddVpcSecurityGroups(Aws::String &&value)
CreateInstanceProfileRequest & WithKmsKeyArn(Aws::String &&value)
CreateInstanceProfileRequest & WithAvailabilityZone(const char *value)
CreateInstanceProfileRequest & WithInstanceProfileName(const char *value)
CreateInstanceProfileRequest & WithVpcSecurityGroups(const Aws::Vector< Aws::String > &value)
CreateInstanceProfileRequest & WithDescription(Aws::String &&value)
CreateInstanceProfileRequest & WithSubnetGroupIdentifier(const Aws::String &value)
CreateInstanceProfileRequest & WithTags(Aws::Vector< Tag > &&value)
CreateInstanceProfileRequest & WithInstanceProfileName(Aws::String &&value)
CreateInstanceProfileRequest & WithTags(const Aws::Vector< Tag > &value)
CreateInstanceProfileRequest & WithNetworkType(const Aws::String &value)
CreateInstanceProfileRequest & WithVpcSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateInstanceProfileRequest & WithAvailabilityZone(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInstanceProfileRequest & WithAvailabilityZone(const Aws::String &value)
CreateInstanceProfileRequest & WithInstanceProfileName(const Aws::String &value)
CreateInstanceProfileRequest & WithDescription(const Aws::String &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