AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ParseJSON.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
40 {
41 public:
42 AWS_CLOUDWATCHLOGS_API ParseJSON() = default;
43 AWS_CLOUDWATCHLOGS_API ParseJSON(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CLOUDWATCHLOGS_API ParseJSON& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetSource() const { return m_source; }
54 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
55 template<typename SourceT = Aws::String>
56 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
57 template<typename SourceT = Aws::String>
58 ParseJSON& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
60
62
66 inline const Aws::String& GetDestination() const { return m_destination; }
67 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
68 template<typename DestinationT = Aws::String>
69 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
70 template<typename DestinationT = Aws::String>
71 ParseJSON& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
73 private:
74
75 Aws::String m_source;
76 bool m_sourceHasBeenSet = false;
77
78 Aws::String m_destination;
79 bool m_destinationHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace CloudWatchLogs
84} // namespace Aws
const Aws::String & GetSource() const
Definition ParseJSON.h:53
AWS_CLOUDWATCHLOGS_API ParseJSON(Aws::Utils::Json::JsonView jsonValue)
void SetDestination(DestinationT &&value)
Definition ParseJSON.h:69
AWS_CLOUDWATCHLOGS_API ParseJSON()=default
AWS_CLOUDWATCHLOGS_API ParseJSON & operator=(Aws::Utils::Json::JsonView jsonValue)
ParseJSON & WithDestination(DestinationT &&value)
Definition ParseJSON.h:71
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
ParseJSON & WithSource(SourceT &&value)
Definition ParseJSON.h:58
const Aws::String & GetDestination() const
Definition ParseJSON.h:66
void SetSource(SourceT &&value)
Definition ParseJSON.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue