AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IamInstanceProfileAssociation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/IamInstanceProfile.h>
12#include <aws/ec2/model/IamInstanceProfileAssociationState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API IamInstanceProfileAssociation() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetAssociationId() const { return m_associationId; }
45 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
46 template <typename AssociationIdT = Aws::String>
47 void SetAssociationId(AssociationIdT&& value) {
48 m_associationIdHasBeenSet = true;
49 m_associationId = std::forward<AssociationIdT>(value);
50 }
51 template <typename AssociationIdT = Aws::String>
53 SetAssociationId(std::forward<AssociationIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
63 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
64 template <typename InstanceIdT = Aws::String>
65 void SetInstanceId(InstanceIdT&& value) {
66 m_instanceIdHasBeenSet = true;
67 m_instanceId = std::forward<InstanceIdT>(value);
68 }
69 template <typename InstanceIdT = Aws::String>
71 SetInstanceId(std::forward<InstanceIdT>(value));
72 return *this;
73 }
75
77
80 inline const IamInstanceProfile& GetIamInstanceProfile() const { return m_iamInstanceProfile; }
81 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
82 template <typename IamInstanceProfileT = IamInstanceProfile>
83 void SetIamInstanceProfile(IamInstanceProfileT&& value) {
84 m_iamInstanceProfileHasBeenSet = true;
85 m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value);
86 }
87 template <typename IamInstanceProfileT = IamInstanceProfile>
89 SetIamInstanceProfile(std::forward<IamInstanceProfileT>(value));
90 return *this;
91 }
93
95
98 inline IamInstanceProfileAssociationState GetState() const { return m_state; }
99 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
101 m_stateHasBeenSet = true;
102 m_state = value;
103 }
105 SetState(value);
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
115 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
116 template <typename TimestampT = Aws::Utils::DateTime>
117 void SetTimestamp(TimestampT&& value) {
118 m_timestampHasBeenSet = true;
119 m_timestamp = std::forward<TimestampT>(value);
120 }
121 template <typename TimestampT = Aws::Utils::DateTime>
123 SetTimestamp(std::forward<TimestampT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_associationId;
129
130 Aws::String m_instanceId;
131
132 IamInstanceProfile m_iamInstanceProfile;
133
135
136 Aws::Utils::DateTime m_timestamp{};
137 bool m_associationIdHasBeenSet = false;
138 bool m_instanceIdHasBeenSet = false;
139 bool m_iamInstanceProfileHasBeenSet = false;
140 bool m_stateHasBeenSet = false;
141 bool m_timestampHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace EC2
146} // namespace Aws
IamInstanceProfileAssociationState GetState() const
IamInstanceProfileAssociation & WithIamInstanceProfile(IamInstanceProfileT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API IamInstanceProfileAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(IamInstanceProfileAssociationState value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IamInstanceProfileAssociation & WithInstanceId(InstanceIdT &&value)
IamInstanceProfileAssociation & WithTimestamp(TimestampT &&value)
IamInstanceProfileAssociation & WithState(IamInstanceProfileAssociationState value)
AWS_EC2_API IamInstanceProfileAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
IamInstanceProfileAssociation & WithAssociationId(AssociationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream