AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
ApproximateDriftedResourceCount.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
31 public:
32 AWS_CONNECT_API ApproximateDriftedResourceCount() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetRegion() const { return m_region; }
42 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
43 template <typename RegionT = Aws::String>
44 void SetRegion(RegionT&& value) {
45 m_regionHasBeenSet = true;
46 m_region = std::forward<RegionT>(value);
47 }
48 template <typename RegionT = Aws::String>
50 SetRegion(std::forward<RegionT>(value));
51 return *this;
52 }
54
56
60 inline long long GetCount() const { return m_count; }
61 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
62 inline void SetCount(long long value) {
63 m_countHasBeenSet = true;
64 m_count = value;
65 }
66 inline ApproximateDriftedResourceCount& WithCount(long long value) {
67 SetCount(value);
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
77 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
78 template <typename TimestampT = Aws::Utils::DateTime>
79 void SetTimestamp(TimestampT&& value) {
80 m_timestampHasBeenSet = true;
81 m_timestamp = std::forward<TimestampT>(value);
82 }
83 template <typename TimestampT = Aws::Utils::DateTime>
85 SetTimestamp(std::forward<TimestampT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_region;
91
92 long long m_count{0};
93
94 Aws::Utils::DateTime m_timestamp{};
95 bool m_regionHasBeenSet = false;
96 bool m_countHasBeenSet = false;
97 bool m_timestampHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Connect
102} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ApproximateDriftedResourceCount & WithCount(long long value)
AWS_CONNECT_API ApproximateDriftedResourceCount(Aws::Utils::Json::JsonView jsonValue)
ApproximateDriftedResourceCount & WithRegion(RegionT &&value)
AWS_CONNECT_API ApproximateDriftedResourceCount()=default
ApproximateDriftedResourceCount & WithTimestamp(TimestampT &&value)
AWS_CONNECT_API ApproximateDriftedResourceCount & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue