AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AccountToAdd.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkflowmonitor/NetworkFlowMonitor_EXPORTS.h>
9#include <aws/networkflowmonitor/model/OrgMembershipStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkFlowMonitor {
21namespace Model {
22
31 public:
32 AWS_NETWORKFLOWMONITOR_API AccountToAdd() = default;
33 AWS_NETWORKFLOWMONITOR_API AccountToAdd(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKFLOWMONITOR_API AccountToAdd& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKFLOWMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
49 AccountToAdd& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetRegion() const { return m_region; }
61 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
62 template <typename RegionT = Aws::String>
63 void SetRegion(RegionT&& value) {
64 m_regionHasBeenSet = true;
65 m_region = std::forward<RegionT>(value);
66 }
67 template <typename RegionT = Aws::String>
68 AccountToAdd& WithRegion(RegionT&& value) {
69 SetRegion(std::forward<RegionT>(value));
70 return *this;
71 }
73
75
84 inline OrgMembershipStatus GetMembership() const { return m_membership; }
85 inline bool MembershipHasBeenSet() const { return m_membershipHasBeenSet; }
87 m_membershipHasBeenSet = true;
88 m_membership = value;
89 }
91 SetMembership(value);
92 return *this;
93 }
95 private:
96 Aws::String m_accountId;
97
98 Aws::String m_region;
99
101 bool m_accountIdHasBeenSet = false;
102 bool m_regionHasBeenSet = false;
103 bool m_membershipHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace NetworkFlowMonitor
108} // namespace Aws
AWS_NETWORKFLOWMONITOR_API AccountToAdd & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountToAdd & WithRegion(RegionT &&value)
AWS_NETWORKFLOWMONITOR_API AccountToAdd()=default
AccountToAdd & WithAccountId(AccountIdT &&value)
const Aws::String & GetRegion() const
AWS_NETWORKFLOWMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAccountId() const
AccountToAdd & WithMembership(OrgMembershipStatus value)
OrgMembershipStatus GetMembership() const
void SetMembership(OrgMembershipStatus value)
AWS_NETWORKFLOWMONITOR_API AccountToAdd(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue