AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StaticValue.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConfigService {
21namespace Model {
22
29 public:
30 AWS_CONFIGSERVICE_API StaticValue() = default;
31 AWS_CONFIGSERVICE_API StaticValue(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONFIGSERVICE_API StaticValue& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
40 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
41 template <typename ValuesT = Aws::Vector<Aws::String>>
42 void SetValues(ValuesT&& value) {
43 m_valuesHasBeenSet = true;
44 m_values = std::forward<ValuesT>(value);
45 }
46 template <typename ValuesT = Aws::Vector<Aws::String>>
47 StaticValue& WithValues(ValuesT&& value) {
48 SetValues(std::forward<ValuesT>(value));
49 return *this;
50 }
51 template <typename ValuesT = Aws::String>
52 StaticValue& AddValues(ValuesT&& value) {
53 m_valuesHasBeenSet = true;
54 m_values.emplace_back(std::forward<ValuesT>(value));
55 return *this;
56 }
58 private:
60 bool m_valuesHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace ConfigService
65} // namespace Aws
const Aws::Vector< Aws::String > & GetValues() const
Definition StaticValue.h:39
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API StaticValue()=default
StaticValue & WithValues(ValuesT &&value)
Definition StaticValue.h:47
AWS_CONFIGSERVICE_API StaticValue(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API StaticValue & operator=(Aws::Utils::Json::JsonView jsonValue)
StaticValue & AddValues(ValuesT &&value)
Definition StaticValue.h:52
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue