AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GroupByValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
29 public:
30 AWS_SECURITYHUB_API GroupByValue() = default;
31 AWS_SECURITYHUB_API GroupByValue(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API GroupByValue& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFieldValue() const { return m_fieldValue; }
40 inline bool FieldValueHasBeenSet() const { return m_fieldValueHasBeenSet; }
41 template <typename FieldValueT = Aws::String>
42 void SetFieldValue(FieldValueT&& value) {
43 m_fieldValueHasBeenSet = true;
44 m_fieldValue = std::forward<FieldValueT>(value);
45 }
46 template <typename FieldValueT = Aws::String>
47 GroupByValue& WithFieldValue(FieldValueT&& value) {
48 SetFieldValue(std::forward<FieldValueT>(value));
49 return *this;
50 }
52
54
58 inline int GetCount() const { return m_count; }
59 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
60 inline void SetCount(int value) {
61 m_countHasBeenSet = true;
62 m_count = value;
63 }
64 inline GroupByValue& WithCount(int value) {
65 SetCount(value);
66 return *this;
67 }
69 private:
70 Aws::String m_fieldValue;
71
72 int m_count{0};
73 bool m_fieldValueHasBeenSet = false;
74 bool m_countHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SecurityHub
79} // namespace Aws
GroupByValue & WithCount(int value)
const Aws::String & GetFieldValue() const
AWS_SECURITYHUB_API GroupByValue & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFieldValue(FieldValueT &&value)
AWS_SECURITYHUB_API GroupByValue(Aws::Utils::Json::JsonView jsonValue)
GroupByValue & WithFieldValue(FieldValueT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API GroupByValue()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue