AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
53 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
54 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
55 inline IamInstanceProfileAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
56 inline IamInstanceProfileAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
57 inline IamInstanceProfileAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
59
61
64 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
65 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
66 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
67 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
68 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
69 inline IamInstanceProfileAssociation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
70 inline IamInstanceProfileAssociation& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
71 inline IamInstanceProfileAssociation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
73
75
78 inline const IamInstanceProfile& GetIamInstanceProfile() const{ return m_iamInstanceProfile; }
79 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
80 inline void SetIamInstanceProfile(const IamInstanceProfile& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; }
81 inline void SetIamInstanceProfile(IamInstanceProfile&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); }
85
87
90 inline const IamInstanceProfileAssociationState& GetState() const{ return m_state; }
91 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
92 inline void SetState(const IamInstanceProfileAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
93 inline void SetState(IamInstanceProfileAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
95 inline IamInstanceProfileAssociation& WithState(IamInstanceProfileAssociationState&& value) { SetState(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
103 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
104 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
105 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
107 inline IamInstanceProfileAssociation& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_associationId;
112 bool m_associationIdHasBeenSet = false;
113
114 Aws::String m_instanceId;
115 bool m_instanceIdHasBeenSet = false;
116
117 IamInstanceProfile m_iamInstanceProfile;
118 bool m_iamInstanceProfileHasBeenSet = false;
119
121 bool m_stateHasBeenSet = false;
122
123 Aws::Utils::DateTime m_timestamp;
124 bool m_timestampHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace EC2
129} // namespace Aws
IamInstanceProfileAssociation & WithState(const IamInstanceProfileAssociationState &value)
IamInstanceProfileAssociation & WithTimestamp(Aws::Utils::DateTime &&value)
IamInstanceProfileAssociation & WithInstanceId(Aws::String &&value)
const IamInstanceProfileAssociationState & GetState() const
IamInstanceProfileAssociation & WithInstanceId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IamInstanceProfileAssociation & WithAssociationId(Aws::String &&value)
AWS_EC2_API IamInstanceProfileAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIamInstanceProfile(const IamInstanceProfile &value)
IamInstanceProfileAssociation & WithTimestamp(const Aws::Utils::DateTime &value)
IamInstanceProfileAssociation & WithAssociationId(const char *value)
void SetState(const IamInstanceProfileAssociationState &value)
IamInstanceProfileAssociation & WithInstanceId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IamInstanceProfileAssociation & WithIamInstanceProfile(const IamInstanceProfile &value)
IamInstanceProfileAssociation & WithState(IamInstanceProfileAssociationState &&value)
IamInstanceProfileAssociation & WithAssociationId(const Aws::String &value)
void SetState(IamInstanceProfileAssociationState &&value)
IamInstanceProfileAssociation & WithIamInstanceProfile(IamInstanceProfile &&value)
AWS_EC2_API IamInstanceProfileAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream