AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
ResourceDistribution.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
28 public:
29 AWS_GUARDDUTY_API ResourceDistribution() = default;
32 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetResourceType() const { return m_resourceType; }
39 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
40 template <typename ResourceTypeT = Aws::String>
41 void SetResourceType(ResourceTypeT&& value) {
42 m_resourceTypeHasBeenSet = true;
43 m_resourceType = std::forward<ResourceTypeT>(value);
44 }
45 template <typename ResourceTypeT = Aws::String>
46 ResourceDistribution& WithResourceType(ResourceTypeT&& value) {
47 SetResourceType(std::forward<ResourceTypeT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetIdentifier() const { return m_identifier; }
57 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
58 template <typename IdentifierT = Aws::String>
59 void SetIdentifier(IdentifierT&& value) {
60 m_identifierHasBeenSet = true;
61 m_identifier = std::forward<IdentifierT>(value);
62 }
63 template <typename IdentifierT = Aws::String>
64 ResourceDistribution& WithIdentifier(IdentifierT&& value) {
65 SetIdentifier(std::forward<IdentifierT>(value));
66 return *this;
67 }
69
71
74 inline long long GetCount() const { return m_count; }
75 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
76 inline void SetCount(long long value) {
77 m_countHasBeenSet = true;
78 m_count = value;
79 }
80 inline ResourceDistribution& WithCount(long long value) {
81 SetCount(value);
82 return *this;
83 }
85 private:
86 Aws::String m_resourceType;
87
88 Aws::String m_identifier;
89
90 long long m_count{0};
91 bool m_resourceTypeHasBeenSet = false;
92 bool m_identifierHasBeenSet = false;
93 bool m_countHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace GuardDuty
98} // namespace Aws
AWS_GUARDDUTY_API ResourceDistribution()=default
ResourceDistribution & WithIdentifier(IdentifierT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceDistribution & WithCount(long long value)
AWS_GUARDDUTY_API ResourceDistribution & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceDistribution & WithResourceType(ResourceTypeT &&value)
AWS_GUARDDUTY_API ResourceDistribution(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue