AWS SDK for C++  1.9.40
AWS SDK for C++
PutEventsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Pinpoint
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PutEvents"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
41 
46  inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
47 
52  inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
53 
58  inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
59 
64  inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
65 
70  inline PutEventsRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
71 
76  inline PutEventsRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
77 
82  inline PutEventsRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
83 
84 
85 
86  inline const EventsRequest& GetEventsRequest() const{ return m_eventsRequest; }
87 
88 
89  inline bool EventsRequestHasBeenSet() const { return m_eventsRequestHasBeenSet; }
90 
91 
92  inline void SetEventsRequest(const EventsRequest& value) { m_eventsRequestHasBeenSet = true; m_eventsRequest = value; }
93 
94 
95  inline void SetEventsRequest(EventsRequest&& value) { m_eventsRequestHasBeenSet = true; m_eventsRequest = std::move(value); }
96 
97 
98  inline PutEventsRequest& WithEventsRequest(const EventsRequest& value) { SetEventsRequest(value); return *this;}
99 
100 
101  inline PutEventsRequest& WithEventsRequest(EventsRequest&& value) { SetEventsRequest(std::move(value)); return *this;}
102 
103  private:
104 
105  Aws::String m_applicationId;
106  bool m_applicationIdHasBeenSet;
107 
108  EventsRequest m_eventsRequest;
109  bool m_eventsRequestHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace Pinpoint
114 } // namespace Aws
Aws::Pinpoint::Model::PutEventsRequest::SetApplicationId
void SetApplicationId(const Aws::String &value)
Definition: PutEventsRequest.h:52
Aws::Pinpoint::Model::PutEventsRequest::EventsRequestHasBeenSet
bool EventsRequestHasBeenSet() const
Definition: PutEventsRequest.h:89
Aws::Pinpoint::Model::PutEventsRequest::ApplicationIdHasBeenSet
bool ApplicationIdHasBeenSet() const
Definition: PutEventsRequest.h:46
Aws::Pinpoint::Model::PutEventsRequest::GetApplicationId
const Aws::String & GetApplicationId() const
Definition: PutEventsRequest.h:40
AWS_PINPOINT_API
#define AWS_PINPOINT_API
Definition: Pinpoint_EXPORTS.h:28
Aws::Pinpoint::Model::PutEventsRequest::WithApplicationId
PutEventsRequest & WithApplicationId(const char *value)
Definition: PutEventsRequest.h:82
Aws::Pinpoint::Model::PutEventsRequest::SetApplicationId
void SetApplicationId(const char *value)
Definition: PutEventsRequest.h:64
Aws::Pinpoint::Model::PutEventsRequest::WithEventsRequest
PutEventsRequest & WithEventsRequest(EventsRequest &&value)
Definition: PutEventsRequest.h:101
Aws::Pinpoint::Model::PutEventsRequest::SetEventsRequest
void SetEventsRequest(const EventsRequest &value)
Definition: PutEventsRequest.h:92
Aws::Pinpoint::Model::PutEventsRequest::GetEventsRequest
const EventsRequest & GetEventsRequest() const
Definition: PutEventsRequest.h:86
Aws::Pinpoint::Model::PutEventsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Pinpoint::Model::PutEventsRequest::WithEventsRequest
PutEventsRequest & WithEventsRequest(const EventsRequest &value)
Definition: PutEventsRequest.h:98
EventsRequest.h
Aws::Pinpoint::Model::PutEventsRequest::SetApplicationId
void SetApplicationId(Aws::String &&value)
Definition: PutEventsRequest.h:58
Aws::Pinpoint::Model::PutEventsRequest
Definition: PutEventsRequest.h:23
Aws::Pinpoint::Model::PutEventsRequest::SetEventsRequest
void SetEventsRequest(EventsRequest &&value)
Definition: PutEventsRequest.h:95
Pinpoint_EXPORTS.h
Aws::Pinpoint::Model::EventsRequest
Definition: EventsRequest.h:34
AWSString.h
Aws::Pinpoint::PinpointRequest
Definition: PinpointRequest.h:17
Aws::Pinpoint::Model::PutEventsRequest::WithApplicationId
PutEventsRequest & WithApplicationId(Aws::String &&value)
Definition: PutEventsRequest.h:76
Aws
Definition: AccessManagementClient.h:15
Aws::Pinpoint::Model::PutEventsRequest::PutEventsRequest
PutEventsRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PinpointRequest.h
Aws::Pinpoint::Model::PutEventsRequest::WithApplicationId
PutEventsRequest & WithApplicationId(const Aws::String &value)
Definition: PutEventsRequest.h:70
Aws::Pinpoint::Model::PutEventsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutEventsRequest.h:31