AWS SDK for C++  1.9.70
AWS SDK for C++
IamInstanceProfileAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
50 
54  inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
55 
59  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
60 
64  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
65 
69  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
70 
74  inline IamInstanceProfileAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
75 
79  inline IamInstanceProfileAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
80 
84  inline IamInstanceProfileAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
85 
86 
90  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
91 
95  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
96 
100  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
101 
105  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
106 
110  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
111 
115  inline IamInstanceProfileAssociation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
116 
120  inline IamInstanceProfileAssociation& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
121 
125  inline IamInstanceProfileAssociation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
126 
127 
131  inline const IamInstanceProfile& GetIamInstanceProfile() const{ return m_iamInstanceProfile; }
132 
136  inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
137 
141  inline void SetIamInstanceProfile(const IamInstanceProfile& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; }
142 
146  inline void SetIamInstanceProfile(IamInstanceProfile&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); }
147 
151  inline IamInstanceProfileAssociation& WithIamInstanceProfile(const IamInstanceProfile& value) { SetIamInstanceProfile(value); return *this;}
152 
156  inline IamInstanceProfileAssociation& WithIamInstanceProfile(IamInstanceProfile&& value) { SetIamInstanceProfile(std::move(value)); return *this;}
157 
158 
162  inline const IamInstanceProfileAssociationState& GetState() const{ return m_state; }
163 
167  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
168 
172  inline void SetState(const IamInstanceProfileAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
173 
177  inline void SetState(IamInstanceProfileAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
178 
182  inline IamInstanceProfileAssociation& WithState(const IamInstanceProfileAssociationState& value) { SetState(value); return *this;}
183 
187  inline IamInstanceProfileAssociation& WithState(IamInstanceProfileAssociationState&& value) { SetState(std::move(value)); return *this;}
188 
189 
193  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
194 
198  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
199 
203  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
204 
208  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
209 
213  inline IamInstanceProfileAssociation& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
214 
218  inline IamInstanceProfileAssociation& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
219 
220  private:
221 
222  Aws::String m_associationId;
223  bool m_associationIdHasBeenSet;
224 
225  Aws::String m_instanceId;
226  bool m_instanceIdHasBeenSet;
227 
228  IamInstanceProfile m_iamInstanceProfile;
229  bool m_iamInstanceProfileHasBeenSet;
230 
232  bool m_stateHasBeenSet;
233 
234  Aws::Utils::DateTime m_timestamp;
235  bool m_timestampHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace EC2
240 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::IamInstanceProfileAssociation::IamInstanceProfileAssociation
IamInstanceProfileAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
IamInstanceProfile.h
Aws::EC2::Model::IamInstanceProfileAssociation::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: IamInstanceProfileAssociation.h:95
IamInstanceProfileAssociationState.h
Aws::EC2::Model::IamInstanceProfileAssociation::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: IamInstanceProfileAssociation.h:105
Aws::EC2::Model::IamInstanceProfileAssociation::WithState
IamInstanceProfileAssociation & WithState(IamInstanceProfileAssociationState &&value)
Definition: IamInstanceProfileAssociation.h:187
Aws::EC2::Model::IamInstanceProfileAssociation::WithIamInstanceProfile
IamInstanceProfileAssociation & WithIamInstanceProfile(IamInstanceProfile &&value)
Definition: IamInstanceProfileAssociation.h:156
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::IamInstanceProfileAssociation::AssociationIdHasBeenSet
bool AssociationIdHasBeenSet() const
Definition: IamInstanceProfileAssociation.h:54
Aws::EC2::Model::IamInstanceProfileAssociation::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: IamInstanceProfileAssociation.h:90
AWSStreamFwd.h
Aws::EC2::Model::IamInstanceProfileAssociation::SetState
void SetState(const IamInstanceProfileAssociationState &value)
Definition: IamInstanceProfileAssociation.h:172
Aws::EC2::Model::IamInstanceProfileAssociation::WithInstanceId
IamInstanceProfileAssociation & WithInstanceId(Aws::String &&value)
Definition: IamInstanceProfileAssociation.h:120
Aws::EC2::Model::IamInstanceProfileAssociation::WithIamInstanceProfile
IamInstanceProfileAssociation & WithIamInstanceProfile(const IamInstanceProfile &value)
Definition: IamInstanceProfileAssociation.h:151
Aws::EC2::Model::IamInstanceProfileAssociation::WithInstanceId
IamInstanceProfileAssociation & WithInstanceId(const char *value)
Definition: IamInstanceProfileAssociation.h:125
Aws::EC2::Model::IamInstanceProfileAssociation::WithAssociationId
IamInstanceProfileAssociation & WithAssociationId(Aws::String &&value)
Definition: IamInstanceProfileAssociation.h:79
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::IamInstanceProfileAssociation::IamInstanceProfileAssociation
IamInstanceProfileAssociation()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::IamInstanceProfileAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::IamInstanceProfileAssociation::IamInstanceProfileHasBeenSet
bool IamInstanceProfileHasBeenSet() const
Definition: IamInstanceProfileAssociation.h:136
Aws::EC2::Model::IamInstanceProfileAssociation::GetState
const IamInstanceProfileAssociationState & GetState() const
Definition: IamInstanceProfileAssociation.h:162
Aws::EC2::Model::IamInstanceProfileAssociation::StateHasBeenSet
bool StateHasBeenSet() const
Definition: IamInstanceProfileAssociation.h:167
Aws::EC2::Model::IamInstanceProfileAssociation::SetAssociationId
void SetAssociationId(Aws::String &&value)
Definition: IamInstanceProfileAssociation.h:64
Aws::EC2::Model::IamInstanceProfileAssociation::WithTimestamp
IamInstanceProfileAssociation & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: IamInstanceProfileAssociation.h:218
AWSString.h
Aws::EC2::Model::IamInstanceProfileAssociation::SetInstanceId
void SetInstanceId(const char *value)
Definition: IamInstanceProfileAssociation.h:110
Aws::EC2::Model::IamInstanceProfileAssociation::WithState
IamInstanceProfileAssociation & WithState(const IamInstanceProfileAssociationState &value)
Definition: IamInstanceProfileAssociation.h:182
Aws::EC2::Model::IamInstanceProfileAssociation::operator=
IamInstanceProfileAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::IamInstanceProfileAssociation::WithTimestamp
IamInstanceProfileAssociation & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: IamInstanceProfileAssociation.h:213
Aws::EC2::Model::IamInstanceProfileAssociation::SetAssociationId
void SetAssociationId(const char *value)
Definition: IamInstanceProfileAssociation.h:69
Aws::EC2::Model::IamInstanceProfileAssociation::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: IamInstanceProfileAssociation.h:208
Aws::EC2::Model::IamInstanceProfileAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::IamInstanceProfileAssociation::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: IamInstanceProfileAssociation.h:198
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::IamInstanceProfileAssociation::SetIamInstanceProfile
void SetIamInstanceProfile(IamInstanceProfile &&value)
Definition: IamInstanceProfileAssociation.h:146
Aws::EC2::Model::IamInstanceProfileAssociationState
IamInstanceProfileAssociationState
Definition: IamInstanceProfileAssociationState.h:17
Aws::EC2::Model::IamInstanceProfileAssociation::GetAssociationId
const Aws::String & GetAssociationId() const
Definition: IamInstanceProfileAssociation.h:49
Aws::EC2::Model::IamInstanceProfileAssociation::SetAssociationId
void SetAssociationId(const Aws::String &value)
Definition: IamInstanceProfileAssociation.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::IamInstanceProfileAssociation::WithAssociationId
IamInstanceProfileAssociation & WithAssociationId(const char *value)
Definition: IamInstanceProfileAssociation.h:84
Aws::EC2::Model::IamInstanceProfileAssociation
Definition: IamInstanceProfileAssociation.h:36
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::IamInstanceProfileAssociation::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: IamInstanceProfileAssociation.h:193
Aws::EC2::Model::IamInstanceProfileAssociation::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: IamInstanceProfileAssociation.h:203
Aws::EC2::Model::IamInstanceProfileAssociation::GetIamInstanceProfile
const IamInstanceProfile & GetIamInstanceProfile() const
Definition: IamInstanceProfileAssociation.h:131
Aws::EC2::Model::IamInstanceProfileAssociation::WithAssociationId
IamInstanceProfileAssociation & WithAssociationId(const Aws::String &value)
Definition: IamInstanceProfileAssociation.h:74
Aws::EC2::Model::IamInstanceProfile
Definition: IamInstanceProfile.h:32
EC2_EXPORTS.h
Aws::EC2::Model::IamInstanceProfileAssociation::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: IamInstanceProfileAssociation.h:100
Aws::EC2::Model::IamInstanceProfileAssociation::WithInstanceId
IamInstanceProfileAssociation & WithInstanceId(const Aws::String &value)
Definition: IamInstanceProfileAssociation.h:115
Aws::EC2::Model::IamInstanceProfileAssociation::SetState
void SetState(IamInstanceProfileAssociationState &&value)
Definition: IamInstanceProfileAssociation.h:177
Aws::EC2::Model::IamInstanceProfileAssociation::SetIamInstanceProfile
void SetIamInstanceProfile(const IamInstanceProfile &value)
Definition: IamInstanceProfileAssociation.h:141