AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IamInstanceProfileAssociation.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/IamInstanceProfile.h>
11#include <aws/ec2/model/IamInstanceProfileAssociationState.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EC2_API IamInstanceProfileAssociation() = default;
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetAssociationId() const { return m_associationId; }
51 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
52 template<typename AssociationIdT = Aws::String>
53 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
54 template<typename AssociationIdT = Aws::String>
55 IamInstanceProfileAssociation& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
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) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
66 template<typename InstanceIdT = Aws::String>
67 IamInstanceProfileAssociation& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
69
71
74 inline const IamInstanceProfile& GetIamInstanceProfile() const { return m_iamInstanceProfile; }
75 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
76 template<typename IamInstanceProfileT = IamInstanceProfile>
77 void SetIamInstanceProfile(IamInstanceProfileT&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value); }
78 template<typename IamInstanceProfileT = IamInstanceProfile>
79 IamInstanceProfileAssociation& WithIamInstanceProfile(IamInstanceProfileT&& value) { SetIamInstanceProfile(std::forward<IamInstanceProfileT>(value)); return *this;}
81
83
86 inline IamInstanceProfileAssociationState GetState() const { return m_state; }
87 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
88 inline void SetState(IamInstanceProfileAssociationState value) { m_stateHasBeenSet = true; m_state = value; }
91
93
96 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
97 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
98 template<typename TimestampT = Aws::Utils::DateTime>
99 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
100 template<typename TimestampT = Aws::Utils::DateTime>
101 IamInstanceProfileAssociation& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
103 private:
104
105 Aws::String m_associationId;
106 bool m_associationIdHasBeenSet = false;
107
108 Aws::String m_instanceId;
109 bool m_instanceIdHasBeenSet = false;
110
111 IamInstanceProfile m_iamInstanceProfile;
112 bool m_iamInstanceProfileHasBeenSet = false;
113
115 bool m_stateHasBeenSet = false;
116
117 Aws::Utils::DateTime m_timestamp{};
118 bool m_timestampHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace EC2
123} // 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