AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricDataResult.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SESV2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SESV2_API MetricDataResult();
39 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline MetricDataResult& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline MetricDataResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline MetricDataResult& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const{ return m_timestamps; }
61 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
62 inline void SetTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
63 inline void SetTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
65 inline MetricDataResult& WithTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { SetTimestamps(std::move(value)); return *this;}
66 inline MetricDataResult& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
67 inline MetricDataResult& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
69
71
74 inline const Aws::Vector<long long>& GetValues() const{ return m_values; }
75 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
76 inline void SetValues(const Aws::Vector<long long>& value) { m_valuesHasBeenSet = true; m_values = value; }
77 inline void SetValues(Aws::Vector<long long>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
78 inline MetricDataResult& WithValues(const Aws::Vector<long long>& value) { SetValues(value); return *this;}
79 inline MetricDataResult& WithValues(Aws::Vector<long long>&& value) { SetValues(std::move(value)); return *this;}
80 inline MetricDataResult& AddValues(long long value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
82 private:
83
84 Aws::String m_id;
85 bool m_idHasBeenSet = false;
86
88 bool m_timestampsHasBeenSet = false;
89
91 bool m_valuesHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace SESV2
96} // namespace Aws
MetricDataResult & AddValues(long long value)
const Aws::String & GetId() const
void SetTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
void SetTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
void SetValues(const Aws::Vector< long long > &value)
void SetValues(Aws::Vector< long long > &&value)
MetricDataResult & WithId(const Aws::String &value)
MetricDataResult & AddTimestamps(Aws::Utils::DateTime &&value)
MetricDataResult & WithId(const char *value)
MetricDataResult & WithValues(const Aws::Vector< long long > &value)
AWS_SESV2_API MetricDataResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(const Aws::String &value)
MetricDataResult & WithTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
const Aws::Vector< long long > & GetValues() const
MetricDataResult & WithValues(Aws::Vector< long long > &&value)
MetricDataResult & WithTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SESV2_API MetricDataResult(Aws::Utils::Json::JsonView jsonValue)
void SetId(Aws::String &&value)
MetricDataResult & AddTimestamps(const Aws::Utils::DateTime &value)
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
MetricDataResult & WithId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue