/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CleanRooms { namespace Model { /** *

The protected query summary for the objects listed by the * request.

See Also:

AWS * API Reference

*/ class ProtectedQuerySummary { public: AWS_CLEANROOMS_API ProtectedQuerySummary(); AWS_CLEANROOMS_API ProtectedQuerySummary(Aws::Utils::Json::JsonView jsonValue); AWS_CLEANROOMS_API ProtectedQuerySummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique ID of the protected query.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique ID of the protected query.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique ID of the protected query.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique ID of the protected query.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique ID of the protected query.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique ID of the protected query.

*/ inline ProtectedQuerySummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique ID of the protected query.

*/ inline ProtectedQuerySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique ID of the protected query.

*/ inline ProtectedQuerySummary& WithId(const char* value) { SetId(value); return *this;} /** *

The unique ID for the membership that initiated the protected query.

*/ inline const Aws::String& GetMembershipId() const{ return m_membershipId; } /** *

The unique ID for the membership that initiated the protected query.

*/ inline bool MembershipIdHasBeenSet() const { return m_membershipIdHasBeenSet; } /** *

The unique ID for the membership that initiated the protected query.

*/ inline void SetMembershipId(const Aws::String& value) { m_membershipIdHasBeenSet = true; m_membershipId = value; } /** *

The unique ID for the membership that initiated the protected query.

*/ inline void SetMembershipId(Aws::String&& value) { m_membershipIdHasBeenSet = true; m_membershipId = std::move(value); } /** *

The unique ID for the membership that initiated the protected query.

*/ inline void SetMembershipId(const char* value) { m_membershipIdHasBeenSet = true; m_membershipId.assign(value); } /** *

The unique ID for the membership that initiated the protected query.

*/ inline ProtectedQuerySummary& WithMembershipId(const Aws::String& value) { SetMembershipId(value); return *this;} /** *

The unique ID for the membership that initiated the protected query.

*/ inline ProtectedQuerySummary& WithMembershipId(Aws::String&& value) { SetMembershipId(std::move(value)); return *this;} /** *

The unique ID for the membership that initiated the protected query.

*/ inline ProtectedQuerySummary& WithMembershipId(const char* value) { SetMembershipId(value); return *this;} /** *

The unique ARN for the membership that initiated the protected query.

*/ inline const Aws::String& GetMembershipArn() const{ return m_membershipArn; } /** *

The unique ARN for the membership that initiated the protected query.

*/ inline bool MembershipArnHasBeenSet() const { return m_membershipArnHasBeenSet; } /** *

The unique ARN for the membership that initiated the protected query.

*/ inline void SetMembershipArn(const Aws::String& value) { m_membershipArnHasBeenSet = true; m_membershipArn = value; } /** *

The unique ARN for the membership that initiated the protected query.

*/ inline void SetMembershipArn(Aws::String&& value) { m_membershipArnHasBeenSet = true; m_membershipArn = std::move(value); } /** *

The unique ARN for the membership that initiated the protected query.

*/ inline void SetMembershipArn(const char* value) { m_membershipArnHasBeenSet = true; m_membershipArn.assign(value); } /** *

The unique ARN for the membership that initiated the protected query.

*/ inline ProtectedQuerySummary& WithMembershipArn(const Aws::String& value) { SetMembershipArn(value); return *this;} /** *

The unique ARN for the membership that initiated the protected query.

*/ inline ProtectedQuerySummary& WithMembershipArn(Aws::String&& value) { SetMembershipArn(std::move(value)); return *this;} /** *

The unique ARN for the membership that initiated the protected query.

*/ inline ProtectedQuerySummary& WithMembershipArn(const char* value) { SetMembershipArn(value); return *this;} /** *

The time the protected query was created.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The time the protected query was created.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The time the protected query was created.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The time the protected query was created.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

The time the protected query was created.

*/ inline ProtectedQuerySummary& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The time the protected query was created.

*/ inline ProtectedQuerySummary& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The status of the protected query. Value values are `SUBMITTED`, `STARTED`, * `CANCELLED`, `CANCELLING`, `FAILED`, `SUCCESS`, `TIMED_OUT`.

*/ inline const ProtectedQueryStatus& GetStatus() const{ return m_status; } /** *

The status of the protected query. Value values are `SUBMITTED`, `STARTED`, * `CANCELLED`, `CANCELLING`, `FAILED`, `SUCCESS`, `TIMED_OUT`.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the protected query. Value values are `SUBMITTED`, `STARTED`, * `CANCELLED`, `CANCELLING`, `FAILED`, `SUCCESS`, `TIMED_OUT`.

*/ inline void SetStatus(const ProtectedQueryStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the protected query. Value values are `SUBMITTED`, `STARTED`, * `CANCELLED`, `CANCELLING`, `FAILED`, `SUCCESS`, `TIMED_OUT`.

*/ inline void SetStatus(ProtectedQueryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the protected query. Value values are `SUBMITTED`, `STARTED`, * `CANCELLED`, `CANCELLING`, `FAILED`, `SUCCESS`, `TIMED_OUT`.

*/ inline ProtectedQuerySummary& WithStatus(const ProtectedQueryStatus& value) { SetStatus(value); return *this;} /** *

The status of the protected query. Value values are `SUBMITTED`, `STARTED`, * `CANCELLED`, `CANCELLING`, `FAILED`, `SUCCESS`, `TIMED_OUT`.

*/ inline ProtectedQuerySummary& WithStatus(ProtectedQueryStatus&& value) { SetStatus(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; ProtectedQueryStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace CleanRooms } // namespace Aws