AWS SDK for C++  0.12.9
AWS SDK for C++
FailedCreateAssociation.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ssm/SSM_EXPORTS.h>
19 #include <aws/ssm/model/Fault.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace SSM
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  FailedCreateAssociation& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const CreateAssociationBatchRequestEntry& GetEntry() const{ return m_entry; }
50 
54  inline void SetEntry(const CreateAssociationBatchRequestEntry& value) { m_entryHasBeenSet = true; m_entry = value; }
55 
59  inline void SetEntry(CreateAssociationBatchRequestEntry&& value) { m_entryHasBeenSet = true; m_entry = value; }
60 
64  inline FailedCreateAssociation& WithEntry(const CreateAssociationBatchRequestEntry& value) { SetEntry(value); return *this;}
65 
69  inline FailedCreateAssociation& WithEntry(CreateAssociationBatchRequestEntry&& value) { SetEntry(value); return *this;}
70 
74  inline const Aws::String& GetMessage() const{ return m_message; }
75 
79  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
80 
84  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
85 
89  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
90 
94  inline FailedCreateAssociation& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
95 
99  inline FailedCreateAssociation& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
100 
104  inline FailedCreateAssociation& WithMessage(const char* value) { SetMessage(value); return *this;}
105 
109  inline const Fault& GetFault() const{ return m_fault; }
110 
114  inline void SetFault(const Fault& value) { m_faultHasBeenSet = true; m_fault = value; }
115 
119  inline void SetFault(Fault&& value) { m_faultHasBeenSet = true; m_fault = value; }
120 
124  inline FailedCreateAssociation& WithFault(const Fault& value) { SetFault(value); return *this;}
125 
129  inline FailedCreateAssociation& WithFault(Fault&& value) { SetFault(value); return *this;}
130 
131  private:
133  bool m_entryHasBeenSet;
134  Aws::String m_message;
135  bool m_messageHasBeenSet;
136  Fault m_fault;
137  bool m_faultHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace SSM
142 } // namespace Aws
FailedCreateAssociation & WithEntry(CreateAssociationBatchRequestEntry &&value)
const CreateAssociationBatchRequestEntry & GetEntry() const
FailedCreateAssociation & WithFault(const Fault &value)
FailedCreateAssociation & WithMessage(Aws::String &&value)
FailedCreateAssociation & WithEntry(const CreateAssociationBatchRequestEntry &value)
FailedCreateAssociation & WithFault(Fault &&value)
void SetEntry(const CreateAssociationBatchRequestEntry &value)
void SetEntry(CreateAssociationBatchRequestEntry &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
FailedCreateAssociation & WithMessage(const Aws::String &value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:34
FailedCreateAssociation & WithMessage(const char *value)
JSON (JavaScript Object Notation).