AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Setting.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DirectoryService
22{
23namespace Model
24{
25
32 class Setting
33 {
34 public:
35 AWS_DIRECTORYSERVICE_API Setting() = default;
36 AWS_DIRECTORYSERVICE_API Setting(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DIRECTORYSERVICE_API Setting& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 Setting& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
60 inline const Aws::String& GetValue() const { return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 template<typename ValueT = Aws::String>
63 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
64 template<typename ValueT = Aws::String>
65 Setting& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
67 private:
68
69 Aws::String m_name;
70 bool m_nameHasBeenSet = false;
71
72 Aws::String m_value;
73 bool m_valueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace DirectoryService
78} // namespace Aws
void SetValue(ValueT &&value)
Definition Setting.h:63
const Aws::String & GetValue() const
Definition Setting.h:60
AWS_DIRECTORYSERVICE_API Setting(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTORYSERVICE_API Setting()=default
Setting & WithName(NameT &&value)
Definition Setting.h:51
const Aws::String & GetName() const
Definition Setting.h:46
Setting & WithValue(ValueT &&value)
Definition Setting.h:65
AWS_DIRECTORYSERVICE_API Setting & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue