AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceProfile.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DatabaseMigrationService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DATABASEMIGRATIONSERVICE_API InstanceProfile();
38 AWS_DATABASEMIGRATIONSERVICE_API InstanceProfile(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API InstanceProfile& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetInstanceProfileArn() const{ return m_instanceProfileArn; }
49 inline bool InstanceProfileArnHasBeenSet() const { return m_instanceProfileArnHasBeenSet; }
50 inline void SetInstanceProfileArn(const Aws::String& value) { m_instanceProfileArnHasBeenSet = true; m_instanceProfileArn = value; }
51 inline void SetInstanceProfileArn(Aws::String&& value) { m_instanceProfileArnHasBeenSet = true; m_instanceProfileArn = std::move(value); }
52 inline void SetInstanceProfileArn(const char* value) { m_instanceProfileArnHasBeenSet = true; m_instanceProfileArn.assign(value); }
53 inline InstanceProfile& WithInstanceProfileArn(const Aws::String& value) { SetInstanceProfileArn(value); return *this;}
54 inline InstanceProfile& WithInstanceProfileArn(Aws::String&& value) { SetInstanceProfileArn(std::move(value)); return *this;}
55 inline InstanceProfile& WithInstanceProfileArn(const char* value) { SetInstanceProfileArn(value); return *this;}
57
59
62 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
63 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
64 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
65 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
66 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
67 inline InstanceProfile& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
68 inline InstanceProfile& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
69 inline InstanceProfile& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
71
73
81 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
82 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
83 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
84 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
85 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
86 inline InstanceProfile& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
87 inline InstanceProfile& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
88 inline InstanceProfile& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
90
92
98 inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
99 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
100 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
101 inline InstanceProfile& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
103
105
113 inline const Aws::String& GetNetworkType() const{ return m_networkType; }
114 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
115 inline void SetNetworkType(const Aws::String& value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
116 inline void SetNetworkType(Aws::String&& value) { m_networkTypeHasBeenSet = true; m_networkType = std::move(value); }
117 inline void SetNetworkType(const char* value) { m_networkTypeHasBeenSet = true; m_networkType.assign(value); }
118 inline InstanceProfile& WithNetworkType(const Aws::String& value) { SetNetworkType(value); return *this;}
119 inline InstanceProfile& WithNetworkType(Aws::String&& value) { SetNetworkType(std::move(value)); return *this;}
120 inline InstanceProfile& WithNetworkType(const char* value) { SetNetworkType(value); return *this;}
122
124
127 inline const Aws::String& GetInstanceProfileName() const{ return m_instanceProfileName; }
128 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
129 inline void SetInstanceProfileName(const Aws::String& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = value; }
130 inline void SetInstanceProfileName(Aws::String&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::move(value); }
131 inline void SetInstanceProfileName(const char* value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName.assign(value); }
132 inline InstanceProfile& WithInstanceProfileName(const Aws::String& value) { SetInstanceProfileName(value); return *this;}
133 inline InstanceProfile& WithInstanceProfileName(Aws::String&& value) { SetInstanceProfileName(std::move(value)); return *this;}
134 inline InstanceProfile& WithInstanceProfileName(const char* value) { SetInstanceProfileName(value); return *this;}
136
138
144 inline const Aws::String& GetDescription() const{ return m_description; }
145 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
146 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
147 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
148 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
149 inline InstanceProfile& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
150 inline InstanceProfile& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
151 inline InstanceProfile& WithDescription(const char* value) { SetDescription(value); return *this;}
153
155
158 inline const Aws::Utils::DateTime& GetInstanceProfileCreationTime() const{ return m_instanceProfileCreationTime; }
159 inline bool InstanceProfileCreationTimeHasBeenSet() const { return m_instanceProfileCreationTimeHasBeenSet; }
160 inline void SetInstanceProfileCreationTime(const Aws::Utils::DateTime& value) { m_instanceProfileCreationTimeHasBeenSet = true; m_instanceProfileCreationTime = value; }
161 inline void SetInstanceProfileCreationTime(Aws::Utils::DateTime&& value) { m_instanceProfileCreationTimeHasBeenSet = true; m_instanceProfileCreationTime = std::move(value); }
165
167
171 inline const Aws::String& GetSubnetGroupIdentifier() const{ return m_subnetGroupIdentifier; }
172 inline bool SubnetGroupIdentifierHasBeenSet() const { return m_subnetGroupIdentifierHasBeenSet; }
173 inline void SetSubnetGroupIdentifier(const Aws::String& value) { m_subnetGroupIdentifierHasBeenSet = true; m_subnetGroupIdentifier = value; }
174 inline void SetSubnetGroupIdentifier(Aws::String&& value) { m_subnetGroupIdentifierHasBeenSet = true; m_subnetGroupIdentifier = std::move(value); }
175 inline void SetSubnetGroupIdentifier(const char* value) { m_subnetGroupIdentifierHasBeenSet = true; m_subnetGroupIdentifier.assign(value); }
177 inline InstanceProfile& WithSubnetGroupIdentifier(Aws::String&& value) { SetSubnetGroupIdentifier(std::move(value)); return *this;}
178 inline InstanceProfile& WithSubnetGroupIdentifier(const char* value) { SetSubnetGroupIdentifier(value); return *this;}
180
182
186 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroups() const{ return m_vpcSecurityGroups; }
187 inline bool VpcSecurityGroupsHasBeenSet() const { return m_vpcSecurityGroupsHasBeenSet; }
188 inline void SetVpcSecurityGroups(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups = value; }
189 inline void SetVpcSecurityGroups(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups = std::move(value); }
191 inline InstanceProfile& WithVpcSecurityGroups(Aws::Vector<Aws::String>&& value) { SetVpcSecurityGroups(std::move(value)); return *this;}
192 inline InstanceProfile& AddVpcSecurityGroups(const Aws::String& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.push_back(value); return *this; }
193 inline InstanceProfile& AddVpcSecurityGroups(Aws::String&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.push_back(std::move(value)); return *this; }
194 inline InstanceProfile& AddVpcSecurityGroups(const char* value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.push_back(value); return *this; }
196 private:
197
198 Aws::String m_instanceProfileArn;
199 bool m_instanceProfileArnHasBeenSet = false;
200
201 Aws::String m_availabilityZone;
202 bool m_availabilityZoneHasBeenSet = false;
203
204 Aws::String m_kmsKeyArn;
205 bool m_kmsKeyArnHasBeenSet = false;
206
207 bool m_publiclyAccessible;
208 bool m_publiclyAccessibleHasBeenSet = false;
209
210 Aws::String m_networkType;
211 bool m_networkTypeHasBeenSet = false;
212
213 Aws::String m_instanceProfileName;
214 bool m_instanceProfileNameHasBeenSet = false;
215
216 Aws::String m_description;
217 bool m_descriptionHasBeenSet = false;
218
219 Aws::Utils::DateTime m_instanceProfileCreationTime;
220 bool m_instanceProfileCreationTimeHasBeenSet = false;
221
222 Aws::String m_subnetGroupIdentifier;
223 bool m_subnetGroupIdentifierHasBeenSet = false;
224
225 Aws::Vector<Aws::String> m_vpcSecurityGroups;
226 bool m_vpcSecurityGroupsHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace DatabaseMigrationService
231} // namespace Aws
InstanceProfile & WithInstanceProfileArn(Aws::String &&value)
InstanceProfile & WithVpcSecurityGroups(const Aws::Vector< Aws::String > &value)
InstanceProfile & WithKmsKeyArn(const char *value)
InstanceProfile & WithNetworkType(Aws::String &&value)
void SetVpcSecurityGroups(Aws::Vector< Aws::String > &&value)
InstanceProfile & WithVpcSecurityGroups(Aws::Vector< Aws::String > &&value)
void SetInstanceProfileCreationTime(Aws::Utils::DateTime &&value)
InstanceProfile & WithInstanceProfileCreationTime(Aws::Utils::DateTime &&value)
InstanceProfile & WithSubnetGroupIdentifier(const Aws::String &value)
InstanceProfile & WithInstanceProfileName(const Aws::String &value)
InstanceProfile & AddVpcSecurityGroups(const Aws::String &value)
AWS_DATABASEMIGRATIONSERVICE_API InstanceProfile(Aws::Utils::Json::JsonView jsonValue)
InstanceProfile & WithAvailabilityZone(Aws::String &&value)
InstanceProfile & WithDescription(Aws::String &&value)
InstanceProfile & WithNetworkType(const char *value)
InstanceProfile & WithInstanceProfileArn(const char *value)
AWS_DATABASEMIGRATIONSERVICE_API InstanceProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API InstanceProfile()
InstanceProfile & WithDescription(const Aws::String &value)
InstanceProfile & WithSubnetGroupIdentifier(const char *value)
InstanceProfile & AddVpcSecurityGroups(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetInstanceProfileCreationTime() const
InstanceProfile & WithInstanceProfileName(const char *value)
InstanceProfile & WithNetworkType(const Aws::String &value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroups() const
InstanceProfile & WithSubnetGroupIdentifier(Aws::String &&value)
InstanceProfile & AddVpcSecurityGroups(const char *value)
void SetInstanceProfileCreationTime(const Aws::Utils::DateTime &value)
InstanceProfile & WithKmsKeyArn(const Aws::String &value)
InstanceProfile & WithInstanceProfileCreationTime(const Aws::Utils::DateTime &value)
InstanceProfile & WithDescription(const char *value)
InstanceProfile & WithKmsKeyArn(Aws::String &&value)
InstanceProfile & WithInstanceProfileName(Aws::String &&value)
InstanceProfile & WithAvailabilityZone(const char *value)
void SetVpcSecurityGroups(const Aws::Vector< Aws::String > &value)
InstanceProfile & WithInstanceProfileArn(const Aws::String &value)
InstanceProfile & WithAvailabilityZone(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue