AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AssociatedGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9#include <aws/qbusiness/model/MembershipType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QBusiness {
21namespace Model {
22
30 public:
31 AWS_QBUSINESS_API AssociatedGroup() = default;
32 AWS_QBUSINESS_API AssociatedGroup(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 AssociatedGroup& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline MembershipType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(MembershipType value) {
63 m_typeHasBeenSet = true;
64 m_type = value;
65 }
67 SetType(value);
68 return *this;
69 }
71 private:
72 Aws::String m_name;
73
75 bool m_nameHasBeenSet = false;
76 bool m_typeHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace QBusiness
81} // namespace Aws
AWS_QBUSINESS_API AssociatedGroup()=default
AssociatedGroup & WithName(NameT &&value)
AssociatedGroup & WithType(MembershipType value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
AWS_QBUSINESS_API AssociatedGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(MembershipType value)
AWS_QBUSINESS_API AssociatedGroup(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue