AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserSetting.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/Action.h>
9#include <aws/appstream/model/Permission.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppStream
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPSTREAM_API UserSetting();
37 AWS_APPSTREAM_API UserSetting(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSTREAM_API UserSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Action& GetAction() const{ return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
49 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
50 inline UserSetting& WithAction(const Action& value) { SetAction(value); return *this;}
51 inline UserSetting& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
53
55
58 inline const Permission& GetPermission() const{ return m_permission; }
59 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
60 inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
61 inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
62 inline UserSetting& WithPermission(const Permission& value) { SetPermission(value); return *this;}
63 inline UserSetting& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
65
67
77 inline int GetMaximumLength() const{ return m_maximumLength; }
78 inline bool MaximumLengthHasBeenSet() const { return m_maximumLengthHasBeenSet; }
79 inline void SetMaximumLength(int value) { m_maximumLengthHasBeenSet = true; m_maximumLength = value; }
80 inline UserSetting& WithMaximumLength(int value) { SetMaximumLength(value); return *this;}
82 private:
83
84 Action m_action;
85 bool m_actionHasBeenSet = false;
86
87 Permission m_permission;
88 bool m_permissionHasBeenSet = false;
89
90 int m_maximumLength;
91 bool m_maximumLengthHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace AppStream
96} // namespace Aws
UserSetting & WithPermission(Permission &&value)
Definition UserSetting.h:63
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPermission(Permission &&value)
Definition UserSetting.h:61
void SetAction(const Action &value)
Definition UserSetting.h:48
void SetPermission(const Permission &value)
Definition UserSetting.h:60
AWS_APPSTREAM_API UserSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
const Action & GetAction() const
Definition UserSetting.h:46
UserSetting & WithAction(const Action &value)
Definition UserSetting.h:50
UserSetting & WithMaximumLength(int value)
Definition UserSetting.h:80
UserSetting & WithPermission(const Permission &value)
Definition UserSetting.h:62
void SetAction(Action &&value)
Definition UserSetting.h:49
AWS_APPSTREAM_API UserSetting(Aws::Utils::Json::JsonView jsonValue)
const Permission & GetPermission() const
Definition UserSetting.h:58
UserSetting & WithAction(Action &&value)
Definition UserSetting.h:51
Aws::Utils::Json::JsonValue JsonValue