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>
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>
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>
76 template<
typename IamInstanceProfileT = IamInstanceProfile>
77 void SetIamInstanceProfile(IamInstanceProfileT&& value) { m_iamInstanceProfileHasBeenSet =
true; m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value); }
78 template<
typename IamInstanceProfileT = IamInstanceProfile>
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>
106 bool m_associationIdHasBeenSet =
false;
109 bool m_instanceIdHasBeenSet =
false;
112 bool m_iamInstanceProfileHasBeenSet =
false;
115 bool m_stateHasBeenSet =
false;
118 bool m_timestampHasBeenSet =
false;
bool TimestampHasBeenSet() const
bool AssociationIdHasBeenSet() const
IamInstanceProfileAssociationState GetState() const
IamInstanceProfileAssociation & WithIamInstanceProfile(IamInstanceProfileT &&value)
void SetAssociationId(AssociationIdT &&value)
AWS_EC2_API IamInstanceProfileAssociation()=default
bool IamInstanceProfileHasBeenSet() const
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)
bool StateHasBeenSet() const
void SetInstanceId(InstanceIdT &&value)
void SetState(IamInstanceProfileAssociationState value)
void SetTimestamp(TimestampT &&value)
void SetIamInstanceProfile(IamInstanceProfileT &&value)
bool InstanceIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetTimestamp() const
IamInstanceProfileAssociation & WithInstanceId(InstanceIdT &&value)
IamInstanceProfileAssociation & WithTimestamp(TimestampT &&value)
IamInstanceProfileAssociation & WithState(IamInstanceProfileAssociationState value)
const IamInstanceProfile & GetIamInstanceProfile() const
AWS_EC2_API IamInstanceProfileAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetAssociationId() const
IamInstanceProfileAssociation & WithAssociationId(AssociationIdT &&value)
const Aws::String & GetInstanceId() const
IamInstanceProfileAssociationState
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream