AWS SDK for C++  0.12.9
AWS SDK for C++
AssociationDescription.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>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace SSM
33 {
34 namespace Model
35 {
36 
41  {
42  public:
45  AssociationDescription& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
62 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
71  inline AssociationDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
76  inline AssociationDescription& WithName(Aws::String&& value) { SetName(value); return *this;}
77 
81  inline AssociationDescription& WithName(const char* value) { SetName(value); return *this;}
82 
86  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
87 
91  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
92 
96  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
97 
101  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
102 
106  inline AssociationDescription& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
107 
111  inline AssociationDescription& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
112 
116  inline AssociationDescription& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
117 
121  inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
122 
126  inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
127 
131  inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = value; }
132 
136  inline AssociationDescription& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
137 
141  inline AssociationDescription& WithDate(Aws::Utils::DateTime&& value) { SetDate(value); return *this;}
142 
146  inline const AssociationStatus& GetStatus() const{ return m_status; }
147 
151  inline void SetStatus(const AssociationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
152 
156  inline void SetStatus(AssociationStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
157 
161  inline AssociationDescription& WithStatus(const AssociationStatus& value) { SetStatus(value); return *this;}
162 
166  inline AssociationDescription& WithStatus(AssociationStatus&& value) { SetStatus(value); return *this;}
167 
171  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
172 
176  inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
177 
181  inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
182 
186  inline AssociationDescription& WithParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetParameters(value); return *this;}
187 
191  inline AssociationDescription& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(value); return *this;}
192 
196  inline AssociationDescription& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
197 
201  inline AssociationDescription& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
202 
206  inline AssociationDescription& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
207 
211  inline AssociationDescription& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
212 
216  inline AssociationDescription& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
217 
221  inline AssociationDescription& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
222 
223  private:
224  Aws::String m_name;
225  bool m_nameHasBeenSet;
226  Aws::String m_instanceId;
227  bool m_instanceIdHasBeenSet;
228  Aws::Utils::DateTime m_date;
229  bool m_dateHasBeenSet;
230  AssociationStatus m_status;
231  bool m_statusHasBeenSet;
233  bool m_parametersHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace SSM
238 } // namespace Aws
const Aws::String & GetInstanceId() const
AssociationDescription & WithStatus(AssociationStatus &&value)
void SetDate(const Aws::Utils::DateTime &value)
AssociationDescription & WithInstanceId(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
AssociationDescription & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
AssociationDescription & WithInstanceId(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
AssociationDescription & WithStatus(const AssociationStatus &value)
AssociationDescription & WithDate(const Aws::Utils::DateTime &value)
void SetName(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
AssociationDescription & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
AssociationDescription & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
AssociationDescription & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
void SetStatus(const AssociationStatus &value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
AssociationDescription & WithDate(Aws::Utils::DateTime &&value)
AssociationDescription & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
AssociationDescription & WithInstanceId(const Aws::String &value)
AssociationDescription & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetDate() const
void SetStatus(AssociationStatus &&value)
void SetDate(Aws::Utils::DateTime &&value)
AssociationDescription & WithName(const Aws::String &value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const AssociationStatus & GetStatus() const
AssociationDescription & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:34
AssociationDescription & WithName(Aws::String &&value)
AssociationDescription & WithName(const char *value)
AssociationDescription & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
JSON (JavaScript Object Notation).