AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GroupOwnerSetting.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrass/Greengrass_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Greengrass {
20namespace Model {
21
28 public:
29 AWS_GREENGRASS_API GroupOwnerSetting() = default;
30 AWS_GREENGRASS_API GroupOwnerSetting(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline bool GetAutoAddGroupOwner() const { return m_autoAddGroupOwner; }
41 inline bool AutoAddGroupOwnerHasBeenSet() const { return m_autoAddGroupOwnerHasBeenSet; }
42 inline void SetAutoAddGroupOwner(bool value) {
43 m_autoAddGroupOwnerHasBeenSet = true;
44 m_autoAddGroupOwner = value;
45 }
48 return *this;
49 }
51
53
57 inline const Aws::String& GetGroupOwner() const { return m_groupOwner; }
58 inline bool GroupOwnerHasBeenSet() const { return m_groupOwnerHasBeenSet; }
59 template <typename GroupOwnerT = Aws::String>
60 void SetGroupOwner(GroupOwnerT&& value) {
61 m_groupOwnerHasBeenSet = true;
62 m_groupOwner = std::forward<GroupOwnerT>(value);
63 }
64 template <typename GroupOwnerT = Aws::String>
65 GroupOwnerSetting& WithGroupOwner(GroupOwnerT&& value) {
66 SetGroupOwner(std::forward<GroupOwnerT>(value));
67 return *this;
68 }
70 private:
71 bool m_autoAddGroupOwner{false};
72
73 Aws::String m_groupOwner;
74 bool m_autoAddGroupOwnerHasBeenSet = false;
75 bool m_groupOwnerHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Greengrass
80} // namespace Aws
AWS_GREENGRASS_API GroupOwnerSetting(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API GroupOwnerSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
GroupOwnerSetting & WithAutoAddGroupOwner(bool value)
GroupOwnerSetting & WithGroupOwner(GroupOwnerT &&value)
AWS_GREENGRASS_API GroupOwnerSetting()=default
const Aws::String & GetGroupOwner() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue