/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a failed association.See Also:
AWS
* API Reference
The association.
*/ inline const CreateAssociationBatchRequestEntry& GetEntry() const{ return m_entry; } /** *The association.
*/ inline bool EntryHasBeenSet() const { return m_entryHasBeenSet; } /** *The association.
*/ inline void SetEntry(const CreateAssociationBatchRequestEntry& value) { m_entryHasBeenSet = true; m_entry = value; } /** *The association.
*/ inline void SetEntry(CreateAssociationBatchRequestEntry&& value) { m_entryHasBeenSet = true; m_entry = std::move(value); } /** *The association.
*/ inline FailedCreateAssociation& WithEntry(const CreateAssociationBatchRequestEntry& value) { SetEntry(value); return *this;} /** *The association.
*/ inline FailedCreateAssociation& WithEntry(CreateAssociationBatchRequestEntry&& value) { SetEntry(std::move(value)); return *this;} /** *A description of the failure.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *A description of the failure.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *A description of the failure.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *A description of the failure.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *A description of the failure.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *A description of the failure.
*/ inline FailedCreateAssociation& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *A description of the failure.
*/ inline FailedCreateAssociation& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *A description of the failure.
*/ inline FailedCreateAssociation& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The source of the failure.
*/ inline const Fault& GetFault() const{ return m_fault; } /** *The source of the failure.
*/ inline bool FaultHasBeenSet() const { return m_faultHasBeenSet; } /** *The source of the failure.
*/ inline void SetFault(const Fault& value) { m_faultHasBeenSet = true; m_fault = value; } /** *The source of the failure.
*/ inline void SetFault(Fault&& value) { m_faultHasBeenSet = true; m_fault = std::move(value); } /** *The source of the failure.
*/ inline FailedCreateAssociation& WithFault(const Fault& value) { SetFault(value); return *this;} /** *The source of the failure.
*/ inline FailedCreateAssociation& WithFault(Fault&& value) { SetFault(std::move(value)); return *this;} private: CreateAssociationBatchRequestEntry m_entry; bool m_entryHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Fault m_fault; bool m_faultHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws