AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AccountState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/ResourceState.h>
10#include <aws/inspector2/model/State.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
31 public:
32 AWS_INSPECTOR2_API AccountState() = default;
33 AWS_INSPECTOR2_API AccountState(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API AccountState& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR2_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 AccountState& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
59 inline const State& GetState() const { return m_state; }
60 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
61 template <typename StateT = State>
62 void SetState(StateT&& value) {
63 m_stateHasBeenSet = true;
64 m_state = std::forward<StateT>(value);
65 }
66 template <typename StateT = State>
67 AccountState& WithState(StateT&& value) {
68 SetState(std::forward<StateT>(value));
69 return *this;
70 }
72
74
78 inline const ResourceState& GetResourceState() const { return m_resourceState; }
79 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
80 template <typename ResourceStateT = ResourceState>
81 void SetResourceState(ResourceStateT&& value) {
82 m_resourceStateHasBeenSet = true;
83 m_resourceState = std::forward<ResourceStateT>(value);
84 }
85 template <typename ResourceStateT = ResourceState>
86 AccountState& WithResourceState(ResourceStateT&& value) {
87 SetResourceState(std::forward<ResourceStateT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_accountId;
93
94 State m_state;
95
96 ResourceState m_resourceState;
97 bool m_accountIdHasBeenSet = false;
98 bool m_stateHasBeenSet = false;
99 bool m_resourceStateHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Inspector2
104} // namespace Aws
AWS_INSPECTOR2_API AccountState(Aws::Utils::Json::JsonView jsonValue)
AccountState & WithResourceState(ResourceStateT &&value)
AccountState & WithState(StateT &&value)
void SetResourceState(ResourceStateT &&value)
AWS_INSPECTOR2_API AccountState()=default
const ResourceState & GetResourceState() const
AWS_INSPECTOR2_API AccountState & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountState & WithAccountId(AccountIdT &&value)
void SetAccountId(AccountIdT &&value)
const Aws::String & GetAccountId() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue