AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TelemetryMetadata.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_INSPECTOR_API TelemetryMetadata();
37 AWS_INSPECTOR_API TelemetryMetadata(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMessageType() const{ return m_messageType; }
47 inline bool MessageTypeHasBeenSet() const { return m_messageTypeHasBeenSet; }
48 inline void SetMessageType(const Aws::String& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
49 inline void SetMessageType(Aws::String&& value) { m_messageTypeHasBeenSet = true; m_messageType = std::move(value); }
50 inline void SetMessageType(const char* value) { m_messageTypeHasBeenSet = true; m_messageType.assign(value); }
51 inline TelemetryMetadata& WithMessageType(const Aws::String& value) { SetMessageType(value); return *this;}
52 inline TelemetryMetadata& WithMessageType(Aws::String&& value) { SetMessageType(std::move(value)); return *this;}
53 inline TelemetryMetadata& WithMessageType(const char* value) { SetMessageType(value); return *this;}
55
57
61 inline long long GetCount() const{ return m_count; }
62 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
63 inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
64 inline TelemetryMetadata& WithCount(long long value) { SetCount(value); return *this;}
66
68
72 inline long long GetDataSize() const{ return m_dataSize; }
73 inline bool DataSizeHasBeenSet() const { return m_dataSizeHasBeenSet; }
74 inline void SetDataSize(long long value) { m_dataSizeHasBeenSet = true; m_dataSize = value; }
75 inline TelemetryMetadata& WithDataSize(long long value) { SetDataSize(value); return *this;}
77 private:
78
79 Aws::String m_messageType;
80 bool m_messageTypeHasBeenSet = false;
81
82 long long m_count;
83 bool m_countHasBeenSet = false;
84
85 long long m_dataSize;
86 bool m_dataSizeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Inspector
91} // namespace Aws
void SetMessageType(const Aws::String &value)
TelemetryMetadata & WithMessageType(const Aws::String &value)
TelemetryMetadata & WithDataSize(long long value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
TelemetryMetadata & WithCount(long long value)
TelemetryMetadata & WithMessageType(const char *value)
TelemetryMetadata & WithMessageType(Aws::String &&value)
AWS_INSPECTOR_API TelemetryMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API TelemetryMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessageType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue