AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResultField.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_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 CloudWatchLogs
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_CLOUDWATCHLOGS_API ResultField();
39 AWS_CLOUDWATCHLOGS_API ResultField(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHLOGS_API ResultField& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetField() const{ return m_field; }
49 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
50 inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
51 inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
52 inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
53 inline ResultField& WithField(const Aws::String& value) { SetField(value); return *this;}
54 inline ResultField& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
55 inline ResultField& WithField(const char* value) { SetField(value); return *this;}
57
59
62 inline const Aws::String& GetValue() const{ return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
65 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
66 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
67 inline ResultField& WithValue(const Aws::String& value) { SetValue(value); return *this;}
68 inline ResultField& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
69 inline ResultField& WithValue(const char* value) { SetValue(value); return *this;}
71 private:
72
73 Aws::String m_field;
74 bool m_fieldHasBeenSet = false;
75
76 Aws::String m_value;
77 bool m_valueHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CloudWatchLogs
82} // namespace Aws
void SetField(Aws::String &&value)
Definition ResultField.h:51
AWS_CLOUDWATCHLOGS_API ResultField & operator=(Aws::Utils::Json::JsonView jsonValue)
ResultField & WithField(const char *value)
Definition ResultField.h:55
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
ResultField & WithField(const Aws::String &value)
Definition ResultField.h:53
AWS_CLOUDWATCHLOGS_API ResultField(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
Definition ResultField.h:62
const Aws::String & GetField() const
Definition ResultField.h:48
void SetValue(const Aws::String &value)
Definition ResultField.h:64
ResultField & WithValue(Aws::String &&value)
Definition ResultField.h:68
void SetValue(Aws::String &&value)
Definition ResultField.h:65
ResultField & WithValue(const char *value)
Definition ResultField.h:69
void SetField(const Aws::String &value)
Definition ResultField.h:50
ResultField & WithValue(const Aws::String &value)
Definition ResultField.h:67
ResultField & WithField(Aws::String &&value)
Definition ResultField.h:54
AWS_CLOUDWATCHLOGS_API ResultField()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue