/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The parameters for an Clean Rooms protected query.See Also:
* AWS
* API Reference
The identifier for a protected query instance.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The identifier for a protected query instance.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The identifier for a protected query instance.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The identifier for a protected query instance.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The identifier for a protected query instance.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The identifier for a protected query instance.
*/ inline ProtectedQuery& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The identifier for a protected query instance.
*/ inline ProtectedQuery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The identifier for a protected query instance.
*/ inline ProtectedQuery& WithId(const char* value) { SetId(value); return *this;} /** *The identifier for the membership.
*/ inline const Aws::String& GetMembershipId() const{ return m_membershipId; } /** *The identifier for the membership.
*/ inline bool MembershipIdHasBeenSet() const { return m_membershipIdHasBeenSet; } /** *The identifier for the membership.
*/ inline void SetMembershipId(const Aws::String& value) { m_membershipIdHasBeenSet = true; m_membershipId = value; } /** *The identifier for the membership.
*/ inline void SetMembershipId(Aws::String&& value) { m_membershipIdHasBeenSet = true; m_membershipId = std::move(value); } /** *The identifier for the membership.
*/ inline void SetMembershipId(const char* value) { m_membershipIdHasBeenSet = true; m_membershipId.assign(value); } /** *The identifier for the membership.
*/ inline ProtectedQuery& WithMembershipId(const Aws::String& value) { SetMembershipId(value); return *this;} /** *The identifier for the membership.
*/ inline ProtectedQuery& WithMembershipId(Aws::String&& value) { SetMembershipId(std::move(value)); return *this;} /** *The identifier for the membership.
*/ inline ProtectedQuery& WithMembershipId(const char* value) { SetMembershipId(value); return *this;} /** *The ARN of the membership.
*/ inline const Aws::String& GetMembershipArn() const{ return m_membershipArn; } /** *The ARN of the membership.
*/ inline bool MembershipArnHasBeenSet() const { return m_membershipArnHasBeenSet; } /** *The ARN of the membership.
*/ inline void SetMembershipArn(const Aws::String& value) { m_membershipArnHasBeenSet = true; m_membershipArn = value; } /** *The ARN of the membership.
*/ inline void SetMembershipArn(Aws::String&& value) { m_membershipArnHasBeenSet = true; m_membershipArn = std::move(value); } /** *The ARN of the membership.
*/ inline void SetMembershipArn(const char* value) { m_membershipArnHasBeenSet = true; m_membershipArn.assign(value); } /** *The ARN of the membership.
*/ inline ProtectedQuery& WithMembershipArn(const Aws::String& value) { SetMembershipArn(value); return *this;} /** *The ARN of the membership.
*/ inline ProtectedQuery& WithMembershipArn(Aws::String&& value) { SetMembershipArn(std::move(value)); return *this;} /** *The ARN of the membership.
*/ inline ProtectedQuery& WithMembershipArn(const char* value) { SetMembershipArn(value); return *this;} /** *The time at which the protected query was created.
*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *The time at which the protected query was created.
*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *The time at which the protected query was created.
*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *The time at which the protected query was created.
*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *The time at which the protected query was created.
*/ inline ProtectedQuery& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *The time at which the protected query was created.
*/ inline ProtectedQuery& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *The protected query SQL parameters.
*/ inline const ProtectedQuerySQLParameters& GetSqlParameters() const{ return m_sqlParameters; } /** *The protected query SQL parameters.
*/ inline bool SqlParametersHasBeenSet() const { return m_sqlParametersHasBeenSet; } /** *The protected query SQL parameters.
*/ inline void SetSqlParameters(const ProtectedQuerySQLParameters& value) { m_sqlParametersHasBeenSet = true; m_sqlParameters = value; } /** *The protected query SQL parameters.
*/ inline void SetSqlParameters(ProtectedQuerySQLParameters&& value) { m_sqlParametersHasBeenSet = true; m_sqlParameters = std::move(value); } /** *The protected query SQL parameters.
*/ inline ProtectedQuery& WithSqlParameters(const ProtectedQuerySQLParameters& value) { SetSqlParameters(value); return *this;} /** *The protected query SQL parameters.
*/ inline ProtectedQuery& WithSqlParameters(ProtectedQuerySQLParameters&& value) { SetSqlParameters(std::move(value)); return *this;} /** *The status of the query.
*/ inline const ProtectedQueryStatus& GetStatus() const{ return m_status; } /** *The status of the query.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the query.
*/ inline void SetStatus(const ProtectedQueryStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the query.
*/ inline void SetStatus(ProtectedQueryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the query.
*/ inline ProtectedQuery& WithStatus(const ProtectedQueryStatus& value) { SetStatus(value); return *this;} /** *The status of the query.
*/ inline ProtectedQuery& WithStatus(ProtectedQueryStatus&& value) { SetStatus(std::move(value)); return *this;} /** *Contains any details needed to write the query results.
*/ inline const ProtectedQueryResultConfiguration& GetResultConfiguration() const{ return m_resultConfiguration; } /** *Contains any details needed to write the query results.
*/ inline bool ResultConfigurationHasBeenSet() const { return m_resultConfigurationHasBeenSet; } /** *Contains any details needed to write the query results.
*/ inline void SetResultConfiguration(const ProtectedQueryResultConfiguration& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = value; } /** *Contains any details needed to write the query results.
*/ inline void SetResultConfiguration(ProtectedQueryResultConfiguration&& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = std::move(value); } /** *Contains any details needed to write the query results.
*/ inline ProtectedQuery& WithResultConfiguration(const ProtectedQueryResultConfiguration& value) { SetResultConfiguration(value); return *this;} /** *Contains any details needed to write the query results.
*/ inline ProtectedQuery& WithResultConfiguration(ProtectedQueryResultConfiguration&& value) { SetResultConfiguration(std::move(value)); return *this;} /** *Statistics about protected query execution.
*/ inline const ProtectedQueryStatistics& GetStatistics() const{ return m_statistics; } /** *Statistics about protected query execution.
*/ inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; } /** *Statistics about protected query execution.
*/ inline void SetStatistics(const ProtectedQueryStatistics& value) { m_statisticsHasBeenSet = true; m_statistics = value; } /** *Statistics about protected query execution.
*/ inline void SetStatistics(ProtectedQueryStatistics&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); } /** *Statistics about protected query execution.
*/ inline ProtectedQuery& WithStatistics(const ProtectedQueryStatistics& value) { SetStatistics(value); return *this;} /** *Statistics about protected query execution.
*/ inline ProtectedQuery& WithStatistics(ProtectedQueryStatistics&& value) { SetStatistics(std::move(value)); return *this;} /** *The result of the protected query.
*/ inline const ProtectedQueryResult& GetResult() const{ return m_result; } /** *The result of the protected query.
*/ inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; } /** *The result of the protected query.
*/ inline void SetResult(const ProtectedQueryResult& value) { m_resultHasBeenSet = true; m_result = value; } /** *The result of the protected query.
*/ inline void SetResult(ProtectedQueryResult&& value) { m_resultHasBeenSet = true; m_result = std::move(value); } /** *The result of the protected query.
*/ inline ProtectedQuery& WithResult(const ProtectedQueryResult& value) { SetResult(value); return *this;} /** *The result of the protected query.
*/ inline ProtectedQuery& WithResult(ProtectedQueryResult&& value) { SetResult(std::move(value)); return *this;} /** *An error thrown by the protected query.
*/ inline const ProtectedQueryError& GetError() const{ return m_error; } /** *An error thrown by the protected query.
*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *An error thrown by the protected query.
*/ inline void SetError(const ProtectedQueryError& value) { m_errorHasBeenSet = true; m_error = value; } /** *An error thrown by the protected query.
*/ inline void SetError(ProtectedQueryError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *An error thrown by the protected query.
*/ inline ProtectedQuery& WithError(const ProtectedQueryError& value) { SetError(value); return *this;} /** *An error thrown by the protected query.
*/ inline ProtectedQuery& WithError(ProtectedQueryError&& value) { SetError(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_membershipId; bool m_membershipIdHasBeenSet = false; Aws::String m_membershipArn; bool m_membershipArnHasBeenSet = false; Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; ProtectedQuerySQLParameters m_sqlParameters; bool m_sqlParametersHasBeenSet = false; ProtectedQueryStatus m_status; bool m_statusHasBeenSet = false; ProtectedQueryResultConfiguration m_resultConfiguration; bool m_resultConfigurationHasBeenSet = false; ProtectedQueryStatistics m_statistics; bool m_statisticsHasBeenSet = false; ProtectedQueryResult m_result; bool m_resultHasBeenSet = false; ProtectedQueryError m_error; bool m_errorHasBeenSet = false; }; } // namespace Model } // namespace CleanRooms } // namespace Aws