/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace MobileAnalytics { namespace Model { /** *

A container for the data needed for a PutEvent operation

*/ class AWS_MOBILEANALYTICS_API PutEventsRequest : public MobileAnalyticsRequest { public: PutEventsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutEvents"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

An array of Event JSON objects

*/ inline const Aws::Vector& GetEvents() const{ return m_events; } /** *

An array of Event JSON objects

*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *

An array of Event JSON objects

*/ inline void SetEvents(const Aws::Vector& value) { m_eventsHasBeenSet = true; m_events = value; } /** *

An array of Event JSON objects

*/ inline void SetEvents(Aws::Vector&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); } /** *

An array of Event JSON objects

*/ inline PutEventsRequest& WithEvents(const Aws::Vector& value) { SetEvents(value); return *this;} /** *

An array of Event JSON objects

*/ inline PutEventsRequest& WithEvents(Aws::Vector&& value) { SetEvents(std::move(value)); return *this;} /** *

An array of Event JSON objects

*/ inline PutEventsRequest& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *

An array of Event JSON objects

*/ inline PutEventsRequest& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; } /** *

The client context including the client ID, app title, app version and * package name.

*/ inline const Aws::String& GetClientContext() const{ return m_clientContext; } /** *

The client context including the client ID, app title, app version and * package name.

*/ inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; } /** *

The client context including the client ID, app title, app version and * package name.

*/ inline void SetClientContext(const Aws::String& value) { m_clientContextHasBeenSet = true; m_clientContext = value; } /** *

The client context including the client ID, app title, app version and * package name.

*/ inline void SetClientContext(Aws::String&& value) { m_clientContextHasBeenSet = true; m_clientContext = std::move(value); } /** *

The client context including the client ID, app title, app version and * package name.

*/ inline void SetClientContext(const char* value) { m_clientContextHasBeenSet = true; m_clientContext.assign(value); } /** *

The client context including the client ID, app title, app version and * package name.

*/ inline PutEventsRequest& WithClientContext(const Aws::String& value) { SetClientContext(value); return *this;} /** *

The client context including the client ID, app title, app version and * package name.

*/ inline PutEventsRequest& WithClientContext(Aws::String&& value) { SetClientContext(std::move(value)); return *this;} /** *

The client context including the client ID, app title, app version and * package name.

*/ inline PutEventsRequest& WithClientContext(const char* value) { SetClientContext(value); return *this;} /** *

The encoding used for the client context.

*/ inline const Aws::String& GetClientContextEncoding() const{ return m_clientContextEncoding; } /** *

The encoding used for the client context.

*/ inline bool ClientContextEncodingHasBeenSet() const { return m_clientContextEncodingHasBeenSet; } /** *

The encoding used for the client context.

*/ inline void SetClientContextEncoding(const Aws::String& value) { m_clientContextEncodingHasBeenSet = true; m_clientContextEncoding = value; } /** *

The encoding used for the client context.

*/ inline void SetClientContextEncoding(Aws::String&& value) { m_clientContextEncodingHasBeenSet = true; m_clientContextEncoding = std::move(value); } /** *

The encoding used for the client context.

*/ inline void SetClientContextEncoding(const char* value) { m_clientContextEncodingHasBeenSet = true; m_clientContextEncoding.assign(value); } /** *

The encoding used for the client context.

*/ inline PutEventsRequest& WithClientContextEncoding(const Aws::String& value) { SetClientContextEncoding(value); return *this;} /** *

The encoding used for the client context.

*/ inline PutEventsRequest& WithClientContextEncoding(Aws::String&& value) { SetClientContextEncoding(std::move(value)); return *this;} /** *

The encoding used for the client context.

*/ inline PutEventsRequest& WithClientContextEncoding(const char* value) { SetClientContextEncoding(value); return *this;} private: Aws::Vector m_events; bool m_eventsHasBeenSet; Aws::String m_clientContext; bool m_clientContextHasBeenSet; Aws::String m_clientContextEncoding; bool m_clientContextEncodingHasBeenSet; }; } // namespace Model } // namespace MobileAnalytics } // namespace Aws