AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FailedCreateAssociation.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/model/CreateAssociationBatchRequestEntry.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/Fault.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SSM_API FailedCreateAssociation() = default;
40
41
43
46 inline const CreateAssociationBatchRequestEntry& GetEntry() const { return m_entry; }
47 inline bool EntryHasBeenSet() const { return m_entryHasBeenSet; }
48 template<typename EntryT = CreateAssociationBatchRequestEntry>
49 void SetEntry(EntryT&& value) { m_entryHasBeenSet = true; m_entry = std::forward<EntryT>(value); }
50 template<typename EntryT = CreateAssociationBatchRequestEntry>
51 FailedCreateAssociation& WithEntry(EntryT&& value) { SetEntry(std::forward<EntryT>(value)); return *this;}
53
55
58 inline const Aws::String& GetMessage() const { return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 template<typename MessageT = Aws::String>
61 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
62 template<typename MessageT = Aws::String>
63 FailedCreateAssociation& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
65
67
70 inline Fault GetFault() const { return m_fault; }
71 inline bool FaultHasBeenSet() const { return m_faultHasBeenSet; }
72 inline void SetFault(Fault value) { m_faultHasBeenSet = true; m_fault = value; }
73 inline FailedCreateAssociation& WithFault(Fault value) { SetFault(value); return *this;}
75 private:
76
78 bool m_entryHasBeenSet = false;
79
80 Aws::String m_message;
81 bool m_messageHasBeenSet = false;
82
83 Fault m_fault{Fault::NOT_SET};
84 bool m_faultHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace SSM
89} // namespace Aws
AWS_SSM_API FailedCreateAssociation(Aws::Utils::Json::JsonView jsonValue)
const CreateAssociationBatchRequestEntry & GetEntry() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API FailedCreateAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
FailedCreateAssociation & WithEntry(EntryT &&value)
AWS_SSM_API FailedCreateAssociation()=default
FailedCreateAssociation & WithFault(Fault value)
FailedCreateAssociation & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue