AWS SDK for C++  0.14.3
AWS SDK for C++
CreateAssociationRequest.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>
17 #include <aws/ssm/SSMRequest.h>
21 
22 namespace Aws
23 {
24 namespace SSM
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
47  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 
52  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
53 
57  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 
62  inline CreateAssociationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 
67  inline CreateAssociationRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
68 
72  inline CreateAssociationRequest& WithName(const char* value) { SetName(value); return *this;}
73 
77  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
78 
82  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
83 
87  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
88 
92  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
93 
97  inline CreateAssociationRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
98 
102  inline CreateAssociationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
103 
107  inline CreateAssociationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
108 
112  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
113 
117  inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
118 
122  inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
123 
127  inline CreateAssociationRequest& WithParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetParameters(value); return *this;}
128 
132  inline CreateAssociationRequest& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(value); return *this;}
133 
137  inline CreateAssociationRequest& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
138 
142  inline CreateAssociationRequest& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
143 
147  inline CreateAssociationRequest& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
148 
152  inline CreateAssociationRequest& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
153 
157  inline CreateAssociationRequest& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
158 
162  inline CreateAssociationRequest& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
163 
164  private:
165  Aws::String m_name;
166  bool m_nameHasBeenSet;
167  Aws::String m_instanceId;
168  bool m_instanceIdHasBeenSet;
170  bool m_parametersHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace SSM
175 } // namespace Aws
CreateAssociationRequest & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
CreateAssociationRequest & WithInstanceId(Aws::String &&value)
CreateAssociationRequest & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
CreateAssociationRequest & WithName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
CreateAssociationRequest & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
CreateAssociationRequest & WithName(const char *value)
CreateAssociationRequest & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
CreateAssociationRequest & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
CreateAssociationRequest & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
CreateAssociationRequest & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
CreateAssociationRequest & WithInstanceId(const Aws::String &value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
CreateAssociationRequest & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
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
CreateAssociationRequest & WithName(Aws::String &&value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:37
CreateAssociationRequest & WithInstanceId(const char *value)
JSON (JavaScript Object Notation).