AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Account.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/ResourceStatus.h>
10#include <aws/inspector2/model/Status.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
34 class Account
35 {
36 public:
37 AWS_INSPECTOR2_API Account();
38 AWS_INSPECTOR2_API Account(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Account& 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 Account& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline Account& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline Account& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
61 inline const ResourceStatus& GetResourceStatus() const{ return m_resourceStatus; }
62 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
63 inline void SetResourceStatus(const ResourceStatus& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
64 inline void SetResourceStatus(ResourceStatus&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = std::move(value); }
65 inline Account& WithResourceStatus(const ResourceStatus& value) { SetResourceStatus(value); return *this;}
66 inline Account& WithResourceStatus(ResourceStatus&& value) { SetResourceStatus(std::move(value)); return *this;}
68
70
73 inline const Status& GetStatus() const{ return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
76 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
77 inline Account& WithStatus(const Status& value) { SetStatus(value); return *this;}
78 inline Account& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_accountId;
83 bool m_accountIdHasBeenSet = false;
84
85 ResourceStatus m_resourceStatus;
86 bool m_resourceStatusHasBeenSet = false;
87
88 Status m_status;
89 bool m_statusHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Inspector2
94} // namespace Aws
const Aws::String & GetAccountId() const
Definition Account.h:47
Account & WithStatus(Status &&value)
Definition Account.h:78
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccountId(const Aws::String &value)
Definition Account.h:49
Account & WithResourceStatus(ResourceStatus &&value)
Definition Account.h:66
Account & WithResourceStatus(const ResourceStatus &value)
Definition Account.h:65
const ResourceStatus & GetResourceStatus() const
Definition Account.h:61
AWS_INSPECTOR2_API Account & operator=(Aws::Utils::Json::JsonView jsonValue)
Account & WithAccountId(Aws::String &&value)
Definition Account.h:53
AWS_INSPECTOR2_API Account(Aws::Utils::Json::JsonView jsonValue)
const Status & GetStatus() const
Definition Account.h:73
void SetResourceStatus(const ResourceStatus &value)
Definition Account.h:63
Account & WithAccountId(const char *value)
Definition Account.h:54
bool ResourceStatusHasBeenSet() const
Definition Account.h:62
void SetAccountId(const char *value)
Definition Account.h:51
Account & WithAccountId(const Aws::String &value)
Definition Account.h:52
bool AccountIdHasBeenSet() const
Definition Account.h:48
void SetStatus(Status &&value)
Definition Account.h:76
void SetAccountId(Aws::String &&value)
Definition Account.h:50
AWS_INSPECTOR2_API Account()
Account & WithStatus(const Status &value)
Definition Account.h:77
void SetStatus(const Status &value)
Definition Account.h:75
void SetResourceStatus(ResourceStatus &&value)
Definition Account.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue