/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CleanRooms { namespace Model { /** */ class StartProtectedQueryRequest : public CleanRoomsRequest { public: AWS_CLEANROOMS_API StartProtectedQueryRequest(); // 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 "StartProtectedQuery"; } AWS_CLEANROOMS_API Aws::String SerializePayload() const override; /** *

The type of the protected query to be started.

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

The type of the protected query to be started.

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

The type of the protected query to be started.

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

The type of the protected query to be started.

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

The type of the protected query to be started.

*/ inline StartProtectedQueryRequest& WithType(const ProtectedQueryType& value) { SetType(value); return *this;} /** *

The type of the protected query to be started.

*/ inline StartProtectedQueryRequest& WithType(ProtectedQueryType&& value) { SetType(std::move(value)); return *this;} /** *

A unique identifier for the membership to run this query against. Currently * accepts a membership ID.

*/ inline const Aws::String& GetMembershipIdentifier() const{ return m_membershipIdentifier; } /** *

A unique identifier for the membership to run this query against. Currently * accepts a membership ID.

*/ inline bool MembershipIdentifierHasBeenSet() const { return m_membershipIdentifierHasBeenSet; } /** *

A unique identifier for the membership to run this query against. Currently * accepts a membership ID.

*/ inline void SetMembershipIdentifier(const Aws::String& value) { m_membershipIdentifierHasBeenSet = true; m_membershipIdentifier = value; } /** *

A unique identifier for the membership to run this query against. Currently * accepts a membership ID.

*/ inline void SetMembershipIdentifier(Aws::String&& value) { m_membershipIdentifierHasBeenSet = true; m_membershipIdentifier = std::move(value); } /** *

A unique identifier for the membership to run this query against. Currently * accepts a membership ID.

*/ inline void SetMembershipIdentifier(const char* value) { m_membershipIdentifierHasBeenSet = true; m_membershipIdentifier.assign(value); } /** *

A unique identifier for the membership to run this query against. Currently * accepts a membership ID.

*/ inline StartProtectedQueryRequest& WithMembershipIdentifier(const Aws::String& value) { SetMembershipIdentifier(value); return *this;} /** *

A unique identifier for the membership to run this query against. Currently * accepts a membership ID.

*/ inline StartProtectedQueryRequest& WithMembershipIdentifier(Aws::String&& value) { SetMembershipIdentifier(std::move(value)); return *this;} /** *

A unique identifier for the membership to run this query against. Currently * accepts a membership ID.

*/ inline StartProtectedQueryRequest& WithMembershipIdentifier(const char* value) { SetMembershipIdentifier(value); return *this;} /** *

The protected SQL query parameters.

*/ inline const ProtectedQuerySQLParameters& GetSqlParameters() const{ return m_sqlParameters; } /** *

The protected SQL query parameters.

*/ inline bool SqlParametersHasBeenSet() const { return m_sqlParametersHasBeenSet; } /** *

The protected SQL query parameters.

*/ inline void SetSqlParameters(const ProtectedQuerySQLParameters& value) { m_sqlParametersHasBeenSet = true; m_sqlParameters = value; } /** *

The protected SQL query parameters.

*/ inline void SetSqlParameters(ProtectedQuerySQLParameters&& value) { m_sqlParametersHasBeenSet = true; m_sqlParameters = std::move(value); } /** *

The protected SQL query parameters.

*/ inline StartProtectedQueryRequest& WithSqlParameters(const ProtectedQuerySQLParameters& value) { SetSqlParameters(value); return *this;} /** *

The protected SQL query parameters.

*/ inline StartProtectedQueryRequest& WithSqlParameters(ProtectedQuerySQLParameters&& value) { SetSqlParameters(std::move(value)); return *this;} /** *

The details needed to write the query results.

*/ inline const ProtectedQueryResultConfiguration& GetResultConfiguration() const{ return m_resultConfiguration; } /** *

The details needed to write the query results.

*/ inline bool ResultConfigurationHasBeenSet() const { return m_resultConfigurationHasBeenSet; } /** *

The details needed to write the query results.

*/ inline void SetResultConfiguration(const ProtectedQueryResultConfiguration& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = value; } /** *

The details needed to write the query results.

*/ inline void SetResultConfiguration(ProtectedQueryResultConfiguration&& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = std::move(value); } /** *

The details needed to write the query results.

*/ inline StartProtectedQueryRequest& WithResultConfiguration(const ProtectedQueryResultConfiguration& value) { SetResultConfiguration(value); return *this;} /** *

The details needed to write the query results.

*/ inline StartProtectedQueryRequest& WithResultConfiguration(ProtectedQueryResultConfiguration&& value) { SetResultConfiguration(std::move(value)); return *this;} private: ProtectedQueryType m_type; bool m_typeHasBeenSet = false; Aws::String m_membershipIdentifier; bool m_membershipIdentifierHasBeenSet = false; ProtectedQuerySQLParameters m_sqlParameters; bool m_sqlParametersHasBeenSet = false; ProtectedQueryResultConfiguration m_resultConfiguration; bool m_resultConfigurationHasBeenSet = false; }; } // namespace Model } // namespace CleanRooms } // namespace Aws