/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an association between an IAM instance profile and an
* instance.See Also:
AWS
* API Reference
The ID of the association.
*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *The ID of the association.
*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *The ID of the association.
*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *The ID of the association.
*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *The ID of the association.
*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *The ID of the association.
*/ inline IamInstanceProfileAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *The ID of the association.
*/ inline IamInstanceProfileAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *The ID of the association.
*/ inline IamInstanceProfileAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *The ID of the instance.
*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *The ID of the instance.
*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *The ID of the instance.
*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *The ID of the instance.
*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *The ID of the instance.
*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *The ID of the instance.
*/ inline IamInstanceProfileAssociation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *The ID of the instance.
*/ inline IamInstanceProfileAssociation& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *The ID of the instance.
*/ inline IamInstanceProfileAssociation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *The IAM instance profile.
*/ inline const IamInstanceProfile& GetIamInstanceProfile() const{ return m_iamInstanceProfile; } /** *The IAM instance profile.
*/ inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; } /** *The IAM instance profile.
*/ inline void SetIamInstanceProfile(const IamInstanceProfile& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; } /** *The IAM instance profile.
*/ inline void SetIamInstanceProfile(IamInstanceProfile&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); } /** *The IAM instance profile.
*/ inline IamInstanceProfileAssociation& WithIamInstanceProfile(const IamInstanceProfile& value) { SetIamInstanceProfile(value); return *this;} /** *The IAM instance profile.
*/ inline IamInstanceProfileAssociation& WithIamInstanceProfile(IamInstanceProfile&& value) { SetIamInstanceProfile(std::move(value)); return *this;} /** *The state of the association.
*/ inline const IamInstanceProfileAssociationState& GetState() const{ return m_state; } /** *The state of the association.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the association.
*/ inline void SetState(const IamInstanceProfileAssociationState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the association.
*/ inline void SetState(IamInstanceProfileAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the association.
*/ inline IamInstanceProfileAssociation& WithState(const IamInstanceProfileAssociationState& value) { SetState(value); return *this;} /** *The state of the association.
*/ inline IamInstanceProfileAssociation& WithState(IamInstanceProfileAssociationState&& value) { SetState(std::move(value)); return *this;} /** *The time the IAM instance profile was associated with the instance.
*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *The time the IAM instance profile was associated with the instance.
*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *The time the IAM instance profile was associated with the instance.
*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *The time the IAM instance profile was associated with the instance.
*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *The time the IAM instance profile was associated with the instance.
*/ inline IamInstanceProfileAssociation& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *The time the IAM instance profile was associated with the instance.
*/ inline IamInstanceProfileAssociation& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} private: Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; IamInstanceProfile m_iamInstanceProfile; bool m_iamInstanceProfileHasBeenSet = false; IamInstanceProfileAssociationState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws