AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AdminAccountSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkSecurityManager {
20namespace Model {
21
29 public:
30 AWS_NETWORKSECURITYMANAGER_API AdminAccountSummary() = default;
31 AWS_NETWORKSECURITYMANAGER_API AdminAccountSummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_NETWORKSECURITYMANAGER_API AdminAccountSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAccountId() const { return m_accountId; }
40 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
41 template <typename AccountIdT = Aws::String>
42 void SetAccountId(AccountIdT&& value) {
43 m_accountIdHasBeenSet = true;
44 m_accountId = std::forward<AccountIdT>(value);
45 }
46 template <typename AccountIdT = Aws::String>
47 AdminAccountSummary& WithAccountId(AccountIdT&& value) {
48 SetAccountId(std::forward<AccountIdT>(value));
49 return *this;
50 }
52
54
57 inline int GetPriority() const { return m_priority; }
58 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
59 inline void SetPriority(int value) {
60 m_priorityHasBeenSet = true;
61 m_priority = value;
62 }
63 inline AdminAccountSummary& WithPriority(int value) {
64 SetPriority(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
81 AdminAccountSummary& WithName(NameT&& value) {
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetEmail() const { return m_email; }
92 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
93 template <typename EmailT = Aws::String>
94 void SetEmail(EmailT&& value) {
95 m_emailHasBeenSet = true;
96 m_email = std::forward<EmailT>(value);
97 }
98 template <typename EmailT = Aws::String>
99 AdminAccountSummary& WithEmail(EmailT&& value) {
100 SetEmail(std::forward<EmailT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_accountId;
106
107 int m_priority{0};
108
109 Aws::String m_name;
110
111 Aws::String m_email;
112 bool m_accountIdHasBeenSet = false;
113 bool m_priorityHasBeenSet = false;
114 bool m_nameHasBeenSet = false;
115 bool m_emailHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace NetworkSecurityManager
120} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API AdminAccountSummary()=default
AWS_NETWORKSECURITYMANAGER_API AdminAccountSummary(Aws::Utils::Json::JsonView jsonValue)
AdminAccountSummary & WithAccountId(AccountIdT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKSECURITYMANAGER_API AdminAccountSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue