AWS SDK for C++  0.14.3
AWS SDK for C++
DocumentParameter.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 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace SSM
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  DocumentParameter& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline DocumentParameter& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline DocumentParameter& WithName(Aws::String&& value) { SetName(value); return *this;}
75 
79  inline DocumentParameter& WithName(const char* value) { SetName(value); return *this;}
80 
84  inline const DocumentParameterType& GetType() const{ return m_type; }
85 
89  inline void SetType(const DocumentParameterType& value) { m_typeHasBeenSet = true; m_type = value; }
90 
94  inline void SetType(DocumentParameterType&& value) { m_typeHasBeenSet = true; m_type = value; }
95 
99  inline DocumentParameter& WithType(const DocumentParameterType& value) { SetType(value); return *this;}
100 
104  inline DocumentParameter& WithType(DocumentParameterType&& value) { SetType(value); return *this;}
105 
110  inline const Aws::String& GetDescription() const{ return m_description; }
111 
116  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
117 
122  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
123 
128  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
129 
134  inline DocumentParameter& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
135 
140  inline DocumentParameter& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
141 
146  inline DocumentParameter& WithDescription(const char* value) { SetDescription(value); return *this;}
147 
152  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
153 
158  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
159 
164  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
165 
170  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
171 
176  inline DocumentParameter& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
177 
182  inline DocumentParameter& WithDefaultValue(Aws::String&& value) { SetDefaultValue(value); return *this;}
183 
188  inline DocumentParameter& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
189 
190  private:
191  Aws::String m_name;
192  bool m_nameHasBeenSet;
193  DocumentParameterType m_type;
194  bool m_typeHasBeenSet;
195  Aws::String m_description;
196  bool m_descriptionHasBeenSet;
197  Aws::String m_defaultValue;
198  bool m_defaultValueHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace SSM
203 } // namespace Aws
DocumentParameter & WithDefaultValue(Aws::String &&value)
void SetDescription(Aws::String &&value)
void SetType(const DocumentParameterType &value)
DocumentParameter & WithDefaultValue(const char *value)
DocumentParameter & WithDescription(const Aws::String &value)
void SetDescription(const char *value)
void SetDescription(const Aws::String &value)
DocumentParameter & WithName(Aws::String &&value)
DocumentParameter & WithType(const DocumentParameterType &value)
DocumentParameter & WithDefaultValue(const Aws::String &value)
void SetDefaultValue(const char *value)
void SetType(DocumentParameterType &&value)
void SetName(Aws::String &&value)
void SetDefaultValue(Aws::String &&value)
DocumentParameter & WithName(const Aws::String &value)
const DocumentParameterType & GetType() const
DocumentParameter & WithType(DocumentParameterType &&value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DocumentParameter & WithName(const char *value)
DocumentParameter & WithDescription(Aws::String &&value)
const Aws::String & GetDefaultValue() const
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:37
const Aws::String & GetDescription() const
DocumentParameter & WithDescription(const char *value)
void SetDefaultValue(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetName(const Aws::String &value)