AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeyValuesPair.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Batch
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_BATCH_API KeyValuesPair();
38 AWS_BATCH_API KeyValuesPair(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline KeyValuesPair& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline KeyValuesPair& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline KeyValuesPair& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
62 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
63 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
64 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
65 inline KeyValuesPair& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
66 inline KeyValuesPair& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
67 inline KeyValuesPair& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
68 inline KeyValuesPair& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
69 inline KeyValuesPair& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
71 private:
72
73 Aws::String m_name;
74 bool m_nameHasBeenSet = false;
75
77 bool m_valuesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Batch
82} // namespace Aws
KeyValuesPair & WithName(const char *value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
KeyValuesPair & AddValues(Aws::String &&value)
KeyValuesPair & WithName(const Aws::String &value)
KeyValuesPair & WithValues(const Aws::Vector< Aws::String > &value)
void SetName(const char *value)
AWS_BATCH_API KeyValuesPair(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
AWS_BATCH_API KeyValuesPair & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValues(Aws::Vector< Aws::String > &&value)
KeyValuesPair & AddValues(const char *value)
void SetName(Aws::String &&value)
const Aws::String & GetName() const
KeyValuesPair & WithName(Aws::String &&value)
KeyValuesPair & AddValues(const Aws::String &value)
void SetName(const Aws::String &value)
void SetValues(const Aws::Vector< Aws::String > &value)
KeyValuesPair & WithValues(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue