AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccountState.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/ResourceState.h>
10#include <aws/inspector2/model/State.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_INSPECTOR2_API AccountState() = default;
38 AWS_INSPECTOR2_API AccountState(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API AccountState& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAccountId() const { return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 template<typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
51 template<typename AccountIdT = Aws::String>
52 AccountState& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
54
56
60 inline const ResourceState& GetResourceState() const { return m_resourceState; }
61 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
62 template<typename ResourceStateT = ResourceState>
63 void SetResourceState(ResourceStateT&& value) { m_resourceStateHasBeenSet = true; m_resourceState = std::forward<ResourceStateT>(value); }
64 template<typename ResourceStateT = ResourceState>
65 AccountState& WithResourceState(ResourceStateT&& value) { SetResourceState(std::forward<ResourceStateT>(value)); return *this;}
67
69
72 inline const State& GetState() const { return m_state; }
73 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
74 template<typename StateT = State>
75 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
76 template<typename StateT = State>
77 AccountState& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
79 private:
80
81 Aws::String m_accountId;
82 bool m_accountIdHasBeenSet = false;
83
84 ResourceState m_resourceState;
85 bool m_resourceStateHasBeenSet = false;
86
87 State m_state;
88 bool m_stateHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Inspector2
93} // 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