AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AccountAggregation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/SeverityCounts.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace imagebuilder {
21namespace Model {
22
33 public:
34 AWS_IMAGEBUILDER_API AccountAggregation() = default;
35 AWS_IMAGEBUILDER_API AccountAggregation(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAccountId() const { return m_accountId; }
44 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 template <typename AccountIdT = Aws::String>
46 void SetAccountId(AccountIdT&& value) {
47 m_accountIdHasBeenSet = true;
48 m_accountId = std::forward<AccountIdT>(value);
49 }
50 template <typename AccountIdT = Aws::String>
51 AccountAggregation& WithAccountId(AccountIdT&& value) {
52 SetAccountId(std::forward<AccountIdT>(value));
53 return *this;
54 }
56
58
62 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
63 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
64 template <typename SeverityCountsT = SeverityCounts>
65 void SetSeverityCounts(SeverityCountsT&& value) {
66 m_severityCountsHasBeenSet = true;
67 m_severityCounts = std::forward<SeverityCountsT>(value);
68 }
69 template <typename SeverityCountsT = SeverityCounts>
70 AccountAggregation& WithSeverityCounts(SeverityCountsT&& value) {
71 SetSeverityCounts(std::forward<SeverityCountsT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_accountId;
77
78 SeverityCounts m_severityCounts;
79 bool m_accountIdHasBeenSet = false;
80 bool m_severityCountsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace imagebuilder
85} // namespace Aws
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AccountAggregation & WithAccountId(AccountIdT &&value)
void SetSeverityCounts(SeverityCountsT &&value)
AWS_IMAGEBUILDER_API AccountAggregation(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API AccountAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API AccountAggregation()=default
const SeverityCounts & GetSeverityCounts() const
AccountAggregation & WithSeverityCounts(SeverityCountsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue