AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SplitStringEntry.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
34 {
35 public:
36 AWS_CLOUDWATCHLOGS_API SplitStringEntry() = default;
37 AWS_CLOUDWATCHLOGS_API SplitStringEntry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API SplitStringEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetSource() const { return m_source; }
47 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
48 template<typename SourceT = Aws::String>
49 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
50 template<typename SourceT = Aws::String>
51 SplitStringEntry& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
59 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
60 template<typename DelimiterT = Aws::String>
61 void SetDelimiter(DelimiterT&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::forward<DelimiterT>(value); }
62 template<typename DelimiterT = Aws::String>
63 SplitStringEntry& WithDelimiter(DelimiterT&& value) { SetDelimiter(std::forward<DelimiterT>(value)); return *this;}
65 private:
66
67 Aws::String m_source;
68 bool m_sourceHasBeenSet = false;
69
70 Aws::String m_delimiter;
71 bool m_delimiterHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CloudWatchLogs
76} // namespace Aws
SplitStringEntry & WithDelimiter(DelimiterT &&value)
bool DelimiterHasBeenSet() const
SplitStringEntry & WithSource(SourceT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDelimiter() const
AWS_CLOUDWATCHLOGS_API SplitStringEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSource(SourceT &&value)
void SetDelimiter(DelimiterT &&value)
const Aws::String & GetSource() const
AWS_CLOUDWATCHLOGS_API SplitStringEntry()=default
AWS_CLOUDWATCHLOGS_API SplitStringEntry(Aws::Utils::Json::JsonView jsonValue)
bool SourceHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue