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/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/model/UserSettingActionEnum.h>
9#include <aws/workspaces/model/UserSettingPermissionEnum.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 WorkSpaces
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_WORKSPACES_API UserSetting();
37 AWS_WORKSPACES_API UserSetting(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKSPACES_API UserSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const UserSettingActionEnum& GetAction() const{ return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(const UserSettingActionEnum& value) { m_actionHasBeenSet = true; m_action = value; }
49 inline void SetAction(UserSettingActionEnum&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
50 inline UserSetting& WithAction(const UserSettingActionEnum& value) { SetAction(value); return *this;}
51 inline UserSetting& WithAction(UserSettingActionEnum&& value) { SetAction(std::move(value)); return *this;}
53
55
58 inline const UserSettingPermissionEnum& GetPermission() const{ return m_permission; }
59 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
60 inline void SetPermission(const UserSettingPermissionEnum& value) { m_permissionHasBeenSet = true; m_permission = value; }
61 inline void SetPermission(UserSettingPermissionEnum&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
62 inline UserSetting& WithPermission(const UserSettingPermissionEnum& value) { SetPermission(value); return *this;}
63 inline UserSetting& WithPermission(UserSettingPermissionEnum&& value) { SetPermission(std::move(value)); return *this;}
65
67
70 inline int GetMaximumLength() const{ return m_maximumLength; }
71 inline bool MaximumLengthHasBeenSet() const { return m_maximumLengthHasBeenSet; }
72 inline void SetMaximumLength(int value) { m_maximumLengthHasBeenSet = true; m_maximumLength = value; }
73 inline UserSetting& WithMaximumLength(int value) { SetMaximumLength(value); return *this;}
75 private:
76
77 UserSettingActionEnum m_action;
78 bool m_actionHasBeenSet = false;
79
80 UserSettingPermissionEnum m_permission;
81 bool m_permissionHasBeenSet = false;
82
83 int m_maximumLength;
84 bool m_maximumLengthHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace WorkSpaces
89} // namespace Aws
AWS_WORKSPACES_API UserSetting()
UserSetting & WithMaximumLength(int value)
Definition UserSetting.h:73
void SetPermission(UserSettingPermissionEnum &&value)
Definition UserSetting.h:61
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
UserSetting & WithPermission(UserSettingPermissionEnum &&value)
Definition UserSetting.h:63
UserSetting & WithPermission(const UserSettingPermissionEnum &value)
Definition UserSetting.h:62
AWS_WORKSPACES_API UserSetting(Aws::Utils::Json::JsonView jsonValue)
UserSetting & WithAction(UserSettingActionEnum &&value)
Definition UserSetting.h:51
void SetPermission(const UserSettingPermissionEnum &value)
Definition UserSetting.h:60
AWS_WORKSPACES_API UserSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
const UserSettingPermissionEnum & GetPermission() const
Definition UserSetting.h:58
void SetAction(const UserSettingActionEnum &value)
Definition UserSetting.h:48
void SetAction(UserSettingActionEnum &&value)
Definition UserSetting.h:49
UserSetting & WithAction(const UserSettingActionEnum &value)
Definition UserSetting.h:50
const UserSettingActionEnum & GetAction() const
Definition UserSetting.h:46
Aws::Utils::Json::JsonValue JsonValue