AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
51 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
52 inline AccountState& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline AccountState& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline AccountState& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
62 inline const ResourceState& GetResourceState() const{ return m_resourceState; }
63 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
64 inline void SetResourceState(const ResourceState& value) { m_resourceStateHasBeenSet = true; m_resourceState = value; }
65 inline void SetResourceState(ResourceState&& value) { m_resourceStateHasBeenSet = true; m_resourceState = std::move(value); }
66 inline AccountState& WithResourceState(const ResourceState& value) { SetResourceState(value); return *this;}
67 inline AccountState& WithResourceState(ResourceState&& value) { SetResourceState(std::move(value)); return *this;}
69
71
74 inline const State& GetState() const{ return m_state; }
75 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
76 inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; }
77 inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
78 inline AccountState& WithState(const State& value) { SetState(value); return *this;}
79 inline AccountState& WithState(State&& value) { SetState(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_accountId;
84 bool m_accountIdHasBeenSet = false;
85
86 ResourceState m_resourceState;
87 bool m_resourceStateHasBeenSet = false;
88
89 State m_state;
90 bool m_stateHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Inspector2
95} // namespace Aws
AccountState & WithResourceState(const ResourceState &value)
void SetAccountId(Aws::String &&value)
AccountState & WithResourceState(ResourceState &&value)
void SetAccountId(const char *value)
AccountState & WithState(const State &value)
AWS_INSPECTOR2_API AccountState(Aws::Utils::Json::JsonView jsonValue)
AccountState & WithAccountId(const char *value)
const ResourceState & GetResourceState() const
AWS_INSPECTOR2_API AccountState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceState(const ResourceState &value)
AccountState & WithAccountId(Aws::String &&value)
void SetState(const State &value)
AccountState & WithAccountId(const Aws::String &value)
void SetAccountId(const Aws::String &value)
void SetResourceState(ResourceState &&value)
const Aws::String & GetAccountId() const
AccountState & WithState(State &&value)
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