AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
OwnerProperties.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/OwnerGroupProperties.h>
9#include <aws/datazone/model/OwnerUserProperties.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
29 public:
30 AWS_DATAZONE_API OwnerProperties() = default;
31 AWS_DATAZONE_API OwnerProperties(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const OwnerGroupProperties& GetGroup() const { return m_group; }
40 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
41 template <typename GroupT = OwnerGroupProperties>
42 void SetGroup(GroupT&& value) {
43 m_groupHasBeenSet = true;
44 m_group = std::forward<GroupT>(value);
45 }
46 template <typename GroupT = OwnerGroupProperties>
47 OwnerProperties& WithGroup(GroupT&& value) {
48 SetGroup(std::forward<GroupT>(value));
49 return *this;
50 }
52
54
57 inline const OwnerUserProperties& GetUser() const { return m_user; }
58 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
59 template <typename UserT = OwnerUserProperties>
60 void SetUser(UserT&& value) {
61 m_userHasBeenSet = true;
62 m_user = std::forward<UserT>(value);
63 }
64 template <typename UserT = OwnerUserProperties>
65 OwnerProperties& WithUser(UserT&& value) {
66 SetUser(std::forward<UserT>(value));
67 return *this;
68 }
70 private:
72 bool m_groupHasBeenSet = false;
73
75 bool m_userHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DataZone
80} // namespace Aws
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API OwnerProperties()=default
AWS_DATAZONE_API OwnerProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API OwnerProperties(Aws::Utils::Json::JsonView jsonValue)
OwnerProperties & WithUser(UserT &&value)
OwnerProperties & WithGroup(GroupT &&value)
const OwnerGroupProperties & GetGroup() const
const OwnerUserProperties & GetUser() const
Aws::Utils::Json::JsonValue JsonValue