AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CoverageResource.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/CoverageResourceDetails.h>
10#include <aws/guardduty/model/CoverageStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GuardDuty
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GUARDDUTY_API CoverageResource();
39 AWS_GUARDDUTY_API CoverageResource(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
49 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
50 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
51 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
52 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
53 inline CoverageResource& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
54 inline CoverageResource& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
55 inline CoverageResource& WithResourceId(const char* value) { SetResourceId(value); return *this;}
57
59
62 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
63 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
64 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
65 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
66 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
67 inline CoverageResource& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
68 inline CoverageResource& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
69 inline CoverageResource& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
71
73
76 inline const Aws::String& GetAccountId() const{ return m_accountId; }
77 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
78 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
79 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
80 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
81 inline CoverageResource& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
82 inline CoverageResource& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
83 inline CoverageResource& WithAccountId(const char* value) { SetAccountId(value); return *this;}
85
87
91 inline const CoverageResourceDetails& GetResourceDetails() const{ return m_resourceDetails; }
92 inline bool ResourceDetailsHasBeenSet() const { return m_resourceDetailsHasBeenSet; }
93 inline void SetResourceDetails(const CoverageResourceDetails& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = value; }
94 inline void SetResourceDetails(CoverageResourceDetails&& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = std::move(value); }
96 inline CoverageResource& WithResourceDetails(CoverageResourceDetails&& value) { SetResourceDetails(std::move(value)); return *this;}
98
100
103 inline const CoverageStatus& GetCoverageStatus() const{ return m_coverageStatus; }
104 inline bool CoverageStatusHasBeenSet() const { return m_coverageStatusHasBeenSet; }
105 inline void SetCoverageStatus(const CoverageStatus& value) { m_coverageStatusHasBeenSet = true; m_coverageStatus = value; }
106 inline void SetCoverageStatus(CoverageStatus&& value) { m_coverageStatusHasBeenSet = true; m_coverageStatus = std::move(value); }
107 inline CoverageResource& WithCoverageStatus(const CoverageStatus& value) { SetCoverageStatus(value); return *this;}
108 inline CoverageResource& WithCoverageStatus(CoverageStatus&& value) { SetCoverageStatus(std::move(value)); return *this;}
110
112
116 inline const Aws::String& GetIssue() const{ return m_issue; }
117 inline bool IssueHasBeenSet() const { return m_issueHasBeenSet; }
118 inline void SetIssue(const Aws::String& value) { m_issueHasBeenSet = true; m_issue = value; }
119 inline void SetIssue(Aws::String&& value) { m_issueHasBeenSet = true; m_issue = std::move(value); }
120 inline void SetIssue(const char* value) { m_issueHasBeenSet = true; m_issue.assign(value); }
121 inline CoverageResource& WithIssue(const Aws::String& value) { SetIssue(value); return *this;}
122 inline CoverageResource& WithIssue(Aws::String&& value) { SetIssue(std::move(value)); return *this;}
123 inline CoverageResource& WithIssue(const char* value) { SetIssue(value); return *this;}
125
127
131 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
132 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
133 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
134 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
135 inline CoverageResource& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
136 inline CoverageResource& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
138 private:
139
140 Aws::String m_resourceId;
141 bool m_resourceIdHasBeenSet = false;
142
143 Aws::String m_detectorId;
144 bool m_detectorIdHasBeenSet = false;
145
146 Aws::String m_accountId;
147 bool m_accountIdHasBeenSet = false;
148
149 CoverageResourceDetails m_resourceDetails;
150 bool m_resourceDetailsHasBeenSet = false;
151
152 CoverageStatus m_coverageStatus;
153 bool m_coverageStatusHasBeenSet = false;
154
155 Aws::String m_issue;
156 bool m_issueHasBeenSet = false;
157
158 Aws::Utils::DateTime m_updatedAt;
159 bool m_updatedAtHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace GuardDuty
164} // namespace Aws
CoverageResource & WithResourceId(const Aws::String &value)
void SetResourceId(Aws::String &&value)
CoverageResource & WithIssue(const char *value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
CoverageResource & WithResourceId(const char *value)
CoverageResource & WithUpdatedAt(const Aws::Utils::DateTime &value)
void SetDetectorId(Aws::String &&value)
CoverageResource & WithCoverageStatus(const CoverageStatus &value)
CoverageResource & WithIssue(const Aws::String &value)
void SetResourceDetails(const CoverageResourceDetails &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const CoverageStatus & GetCoverageStatus() const
CoverageResource & WithAccountId(Aws::String &&value)
CoverageResource & WithResourceDetails(CoverageResourceDetails &&value)
CoverageResource & WithCoverageStatus(CoverageStatus &&value)
const Aws::String & GetDetectorId() const
CoverageResource & WithUpdatedAt(Aws::Utils::DateTime &&value)
CoverageResource & WithResourceId(Aws::String &&value)
void SetDetectorId(const Aws::String &value)
void SetResourceId(const Aws::String &value)
const Aws::String & GetAccountId() const
CoverageResource & WithAccountId(const char *value)
void SetIssue(const Aws::String &value)
const Aws::String & GetResourceId() const
const CoverageResourceDetails & GetResourceDetails() const
CoverageResource & WithDetectorId(const char *value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
void SetResourceDetails(CoverageResourceDetails &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetCoverageStatus(CoverageStatus &&value)
CoverageResource & WithAccountId(const Aws::String &value)
CoverageResource & WithIssue(Aws::String &&value)
CoverageResource & WithDetectorId(const Aws::String &value)
void SetAccountId(const Aws::String &value)
CoverageResource & WithResourceDetails(const CoverageResourceDetails &value)
void SetCoverageStatus(const CoverageStatus &value)
CoverageResource & WithDetectorId(Aws::String &&value)
AWS_GUARDDUTY_API CoverageResource(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API CoverageResource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue