AWS SDK for C++  0.14.3
AWS SDK for C++
PutEventsRequestEntry.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace CloudWatchEvents
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  PutEventsRequestEntry& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
51  inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
52 
58  inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
59 
65  inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = value; }
66 
72  inline PutEventsRequestEntry& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
73 
79  inline PutEventsRequestEntry& WithTime(Aws::Utils::DateTime&& value) { SetTime(value); return *this;}
80 
84  inline const Aws::String& GetSource() const{ return m_source; }
85 
89  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
90 
94  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = value; }
95 
99  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
100 
104  inline PutEventsRequestEntry& WithSource(const Aws::String& value) { SetSource(value); return *this;}
105 
109  inline PutEventsRequestEntry& WithSource(Aws::String&& value) { SetSource(value); return *this;}
110 
114  inline PutEventsRequestEntry& WithSource(const char* value) { SetSource(value); return *this;}
115 
120  inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
121 
126  inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
127 
132  inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = value; }
133 
138  inline PutEventsRequestEntry& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
139 
144  inline PutEventsRequestEntry& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(value); return *this;}
145 
150  inline PutEventsRequestEntry& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
151 
156  inline PutEventsRequestEntry& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
157 
162  inline PutEventsRequestEntry& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
163 
168  inline const Aws::String& GetDetailType() const{ return m_detailType; }
169 
174  inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
175 
180  inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
181 
186  inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); }
187 
192  inline PutEventsRequestEntry& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;}
193 
198  inline PutEventsRequestEntry& WithDetailType(Aws::String&& value) { SetDetailType(value); return *this;}
199 
204  inline PutEventsRequestEntry& WithDetailType(const char* value) { SetDetailType(value); return *this;}
205 
210  inline const Aws::String& GetDetail() const{ return m_detail; }
211 
216  inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; }
217 
222  inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = value; }
223 
228  inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); }
229 
234  inline PutEventsRequestEntry& WithDetail(const Aws::String& value) { SetDetail(value); return *this;}
235 
240  inline PutEventsRequestEntry& WithDetail(Aws::String&& value) { SetDetail(value); return *this;}
241 
246  inline PutEventsRequestEntry& WithDetail(const char* value) { SetDetail(value); return *this;}
247 
248  private:
249  Aws::Utils::DateTime m_time;
250  bool m_timeHasBeenSet;
251  Aws::String m_source;
252  bool m_sourceHasBeenSet;
253  Aws::Vector<Aws::String> m_resources;
254  bool m_resourcesHasBeenSet;
255  Aws::String m_detailType;
256  bool m_detailTypeHasBeenSet;
257  Aws::String m_detail;
258  bool m_detailHasBeenSet;
259  };
260 
261 } // namespace Model
262 } // namespace CloudWatchEvents
263 } // namespace Aws
PutEventsRequestEntry & WithDetailType(const Aws::String &value)
#define AWS_CLOUDWATCHEVENTS_API
const Aws::String & GetDetailType() const
PutEventsRequestEntry & WithTime(const Aws::Utils::DateTime &value)
void SetDetailType(const char *value)
void SetDetail(const char *value)
PutEventsRequestEntry & WithSource(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetDetail() const
void SetTime(const Aws::Utils::DateTime &value)
void SetResources(const Aws::Vector< Aws::String > &value)
PutEventsRequestEntry & WithResources(const Aws::Vector< Aws::String > &value)
void SetSource(const char *value)
void SetSource(Aws::String &&value)
void SetDetail(const Aws::String &value)
PutEventsRequestEntry & WithDetail(Aws::String &&value)
const Aws::String & GetSource() const
PutEventsRequestEntry & WithDetail(const char *value)
PutEventsRequestEntry & WithTime(Aws::Utils::DateTime &&value)
PutEventsRequestEntry & WithResources(Aws::Vector< Aws::String > &&value)
PutEventsRequestEntry & AddResources(Aws::String &&value)
const Aws::Utils::DateTime & GetTime() const
void SetDetail(Aws::String &&value)
PutEventsRequestEntry & WithDetailType(const char *value)
void SetTime(Aws::Utils::DateTime &&value)
PutEventsRequestEntry & WithSource(Aws::String &&value)
PutEventsRequestEntry & WithDetailType(Aws::String &&value)
PutEventsRequestEntry & WithSource(const char *value)
const Aws::Vector< Aws::String > & GetResources() const
PutEventsRequestEntry & WithDetail(const Aws::String &value)
void SetDetailType(const Aws::String &value)
PutEventsRequestEntry & AddResources(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetResources(Aws::Vector< Aws::String > &&value)
void SetDetailType(Aws::String &&value)
PutEventsRequestEntry & AddResources(const char *value)
JSON (JavaScript Object Notation).
void SetSource(const Aws::String &value)