/** * 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 Schemas { namespace Model { /** */ class GetDiscoveredSchemaRequest : public SchemasRequest { public: AWS_SCHEMAS_API GetDiscoveredSchemaRequest(); // 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 "GetDiscoveredSchema"; } AWS_SCHEMAS_API Aws::String SerializePayload() const override; /** *

An array of strings where each string is a JSON event. These are the events * that were used to generate the schema. The array includes a single type of event * and has a maximum size of 10 events.

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

An array of strings where each string is a JSON event. These are the events * that were used to generate the schema. The array includes a single type of event * and has a maximum size of 10 events.

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

An array of strings where each string is a JSON event. These are the events * that were used to generate the schema. The array includes a single type of event * and has a maximum size of 10 events.

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

An array of strings where each string is a JSON event. These are the events * that were used to generate the schema. The array includes a single type of event * and has a maximum size of 10 events.

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

An array of strings where each string is a JSON event. These are the events * that were used to generate the schema. The array includes a single type of event * and has a maximum size of 10 events.

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

An array of strings where each string is a JSON event. These are the events * that were used to generate the schema. The array includes a single type of event * and has a maximum size of 10 events.

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

An array of strings where each string is a JSON event. These are the events * that were used to generate the schema. The array includes a single type of event * and has a maximum size of 10 events.

*/ inline GetDiscoveredSchemaRequest& AddEvents(const Aws::String& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *

An array of strings where each string is a JSON event. These are the events * that were used to generate the schema. The array includes a single type of event * and has a maximum size of 10 events.

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

An array of strings where each string is a JSON event. These are the events * that were used to generate the schema. The array includes a single type of event * and has a maximum size of 10 events.

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

The type of event.

*/ inline const Type& GetType() const{ return m_type; } /** *

The type of event.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of event.

*/ inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of event.

*/ inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of event.

*/ inline GetDiscoveredSchemaRequest& WithType(const Type& value) { SetType(value); return *this;} /** *

The type of event.

*/ inline GetDiscoveredSchemaRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;} private: Aws::Vector m_events; bool m_eventsHasBeenSet = false; Type m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Schemas } // namespace Aws