AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutPartnerEventsRequestEntry.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 CloudWatchEvents
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry();
38 AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
48 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
49 inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
50 inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
51 inline PutPartnerEventsRequestEntry& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
52 inline PutPartnerEventsRequestEntry& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetSource() const{ return m_source; }
60 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
61 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
62 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
63 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
64 inline PutPartnerEventsRequestEntry& WithSource(const Aws::String& value) { SetSource(value); return *this;}
65 inline PutPartnerEventsRequestEntry& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
66 inline PutPartnerEventsRequestEntry& WithSource(const char* value) { SetSource(value); return *this;}
68
70
75 inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
76 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
77 inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
78 inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
80 inline PutPartnerEventsRequestEntry& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
81 inline PutPartnerEventsRequestEntry& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
82 inline PutPartnerEventsRequestEntry& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
83 inline PutPartnerEventsRequestEntry& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
85
87
91 inline const Aws::String& GetDetailType() const{ return m_detailType; }
92 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
93 inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
94 inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); }
95 inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); }
96 inline PutPartnerEventsRequestEntry& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;}
97 inline PutPartnerEventsRequestEntry& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;}
98 inline PutPartnerEventsRequestEntry& WithDetailType(const char* value) { SetDetailType(value); return *this;}
100
102
106 inline const Aws::String& GetDetail() const{ return m_detail; }
107 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
108 inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; }
109 inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
110 inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); }
111 inline PutPartnerEventsRequestEntry& WithDetail(const Aws::String& value) { SetDetail(value); return *this;}
112 inline PutPartnerEventsRequestEntry& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;}
113 inline PutPartnerEventsRequestEntry& WithDetail(const char* value) { SetDetail(value); return *this;}
115 private:
116
118 bool m_timeHasBeenSet = false;
119
120 Aws::String m_source;
121 bool m_sourceHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_resources;
124 bool m_resourcesHasBeenSet = false;
125
126 Aws::String m_detailType;
127 bool m_detailTypeHasBeenSet = false;
128
129 Aws::String m_detail;
130 bool m_detailHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace CloudWatchEvents
135} // namespace Aws
bool TimeHasBeenSet() const
bool DetailTypeHasBeenSet() const
bool ResourcesHasBeenSet() const
PutPartnerEventsRequestEntry & WithDetail(const Aws::String &value)
AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
PutPartnerEventsRequestEntry & WithDetail(Aws::String &&value)
bool DetailHasBeenSet() const
PutPartnerEventsRequestEntry & WithDetailType(Aws::String &&value)
PutPartnerEventsRequestEntry & WithDetail(const char *value)
const Aws::Vector< Aws::String > & GetResources() const
AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry()
PutPartnerEventsRequestEntry & WithDetailType(const char *value)
PutPartnerEventsRequestEntry & WithTime(const Aws::Utils::DateTime &value)
void SetSource(const Aws::String &value)
PutPartnerEventsRequestEntry & WithSource(Aws::String &&value)
PutPartnerEventsRequestEntry & WithResources(Aws::Vector< Aws::String > &&value)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
PutPartnerEventsRequestEntry & AddResources(const char *value)
void SetResources(const Aws::Vector< Aws::String > &value)
void SetSource(const char *value)
void SetTime(Aws::Utils::DateTime &&value)
void SetDetailType(Aws::String &&value)
PutPartnerEventsRequestEntry & AddResources(const Aws::String &value)
void SetDetail(const Aws::String &value)
PutPartnerEventsRequestEntry & WithSource(const Aws::String &value)
PutPartnerEventsRequestEntry & WithDetailType(const Aws::String &value)
void SetResources(Aws::Vector< Aws::String > &&value)
AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTime(const Aws::Utils::DateTime &value)
bool SourceHasBeenSet() const
const Aws::String & GetSource() const
const Aws::String & GetDetailType() const
const Aws::String & GetDetail() const
PutPartnerEventsRequestEntry & WithSource(const char *value)
void SetSource(Aws::String &&value)
PutPartnerEventsRequestEntry & WithResources(const Aws::Vector< Aws::String > &value)
PutPartnerEventsRequestEntry & AddResources(Aws::String &&value)
void SetDetail(Aws::String &&value)
void SetDetailType(const Aws::String &value)
const Aws::Utils::DateTime & GetTime() const
void SetDetail(const char *value)
PutPartnerEventsRequestEntry & WithTime(Aws::Utils::DateTime &&value)
void SetDetailType(const char *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