AWS SDK for C++  0.14.3
AWS SDK for C++
SupportedProductConfig.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace EMR
30 {
31 namespace Model
32 {
33 
40  {
41  public:
44  SupportedProductConfig& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetName() const{ return m_name; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline SupportedProductConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline SupportedProductConfig& WithName(Aws::String&& value) { SetName(value); return *this;}
76 
80  inline SupportedProductConfig& WithName(const char* value) { SetName(value); return *this;}
81 
85  inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
86 
90  inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
91 
95  inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = value; }
96 
100  inline SupportedProductConfig& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
101 
105  inline SupportedProductConfig& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(value); return *this;}
106 
110  inline SupportedProductConfig& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
111 
115  inline SupportedProductConfig& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
116 
120  inline SupportedProductConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
121 
122  private:
123  Aws::String m_name;
124  bool m_nameHasBeenSet;
126  bool m_argsHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace EMR
131 } // namespace Aws
SupportedProductConfig & WithName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< Aws::String > & GetArgs() const
SupportedProductConfig & WithArgs(Aws::Vector< Aws::String > &&value)
SupportedProductConfig & AddArgs(Aws::String &&value)
SupportedProductConfig & AddArgs(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SupportedProductConfig & WithName(Aws::String &&value)
void SetArgs(Aws::Vector< Aws::String > &&value)
SupportedProductConfig & WithArgs(const Aws::Vector< Aws::String > &value)
SupportedProductConfig & AddArgs(const char *value)
void SetArgs(const Aws::Vector< Aws::String > &value)
SupportedProductConfig & WithName(const char *value)
void SetName(const Aws::String &value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
JSON (JavaScript Object Notation).