AWS SDK for C++  0.14.3
AWS SDK for C++
AssociationStatus.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>
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  AssociationStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
50 
54  inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
55 
59  inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = value; }
60 
64  inline AssociationStatus& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
65 
69  inline AssociationStatus& WithDate(Aws::Utils::DateTime&& value) { SetDate(value); return *this;}
70 
74  inline const AssociationStatusName& GetName() const{ return m_name; }
75 
79  inline void SetName(const AssociationStatusName& value) { m_nameHasBeenSet = true; m_name = value; }
80 
84  inline void SetName(AssociationStatusName&& value) { m_nameHasBeenSet = true; m_name = value; }
85 
89  inline AssociationStatus& WithName(const AssociationStatusName& value) { SetName(value); return *this;}
90 
94  inline AssociationStatus& WithName(AssociationStatusName&& value) { SetName(value); return *this;}
95 
99  inline const Aws::String& GetMessage() const{ return m_message; }
100 
104  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
105 
109  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
110 
114  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
115 
119  inline AssociationStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
120 
124  inline AssociationStatus& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
125 
129  inline AssociationStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
130 
134  inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; }
135 
139  inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
140 
144  inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
145 
149  inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); }
150 
154  inline AssociationStatus& WithAdditionalInfo(const Aws::String& value) { SetAdditionalInfo(value); return *this;}
155 
159  inline AssociationStatus& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(value); return *this;}
160 
164  inline AssociationStatus& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;}
165 
166  private:
167  Aws::Utils::DateTime m_date;
168  bool m_dateHasBeenSet;
169  AssociationStatusName m_name;
170  bool m_nameHasBeenSet;
171  Aws::String m_message;
172  bool m_messageHasBeenSet;
173  Aws::String m_additionalInfo;
174  bool m_additionalInfoHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace SSM
179 } // namespace Aws
void SetAdditionalInfo(Aws::String &&value)
void SetMessage(Aws::String &&value)
const Aws::String & GetMessage() const
const AssociationStatusName & GetName() const
void SetName(const AssociationStatusName &value)
const Aws::String & GetAdditionalInfo() const
void SetMessage(const char *value)
AssociationStatus & WithName(const AssociationStatusName &value)
AssociationStatus & WithMessage(const char *value)
AssociationStatus & WithMessage(Aws::String &&value)
void SetDate(Aws::Utils::DateTime &&value)
void SetName(AssociationStatusName &&value)
AssociationStatus & WithMessage(const Aws::String &value)
AssociationStatus & WithAdditionalInfo(Aws::String &&value)
void SetDate(const Aws::Utils::DateTime &value)
AssociationStatus & WithName(AssociationStatusName &&value)
AssociationStatus & WithAdditionalInfo(const Aws::String &value)
void SetMessage(const Aws::String &value)
void SetAdditionalInfo(const Aws::String &value)
AssociationStatus & WithDate(const Aws::Utils::DateTime &value)
AssociationStatus & WithAdditionalInfo(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AssociationStatus & WithDate(Aws::Utils::DateTime &&value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:37
const Aws::Utils::DateTime & GetDate() const
JSON (JavaScript Object Notation).
void SetAdditionalInfo(const char *value)