/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CleanRooms { namespace Model { /** *

A specification about how data from the configured table can be used in a * query.

See Also:

AWS * API Reference

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

The unique ID for the associated collaboration.

*/ inline const Aws::String& GetCollaborationId() const{ return m_collaborationId; } /** *

The unique ID for the associated collaboration.

*/ inline bool CollaborationIdHasBeenSet() const { return m_collaborationIdHasBeenSet; } /** *

The unique ID for the associated collaboration.

*/ inline void SetCollaborationId(const Aws::String& value) { m_collaborationIdHasBeenSet = true; m_collaborationId = value; } /** *

The unique ID for the associated collaboration.

*/ inline void SetCollaborationId(Aws::String&& value) { m_collaborationIdHasBeenSet = true; m_collaborationId = std::move(value); } /** *

The unique ID for the associated collaboration.

*/ inline void SetCollaborationId(const char* value) { m_collaborationIdHasBeenSet = true; m_collaborationId.assign(value); } /** *

The unique ID for the associated collaboration.

*/ inline AnalysisRule& WithCollaborationId(const Aws::String& value) { SetCollaborationId(value); return *this;} /** *

The unique ID for the associated collaboration.

*/ inline AnalysisRule& WithCollaborationId(Aws::String&& value) { SetCollaborationId(std::move(value)); return *this;} /** *

The unique ID for the associated collaboration.

*/ inline AnalysisRule& WithCollaborationId(const char* value) { SetCollaborationId(value); return *this;} /** *

The type of analysis rule. Valid values are `AGGREGATION` and `LIST`.

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

The type of analysis rule. Valid values are `AGGREGATION` and `LIST`.

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

The type of analysis rule. Valid values are `AGGREGATION` and `LIST`.

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

The type of analysis rule. Valid values are `AGGREGATION` and `LIST`.

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

The type of analysis rule. Valid values are `AGGREGATION` and `LIST`.

*/ inline AnalysisRule& WithType(const AnalysisRuleType& value) { SetType(value); return *this;} /** *

The type of analysis rule. Valid values are `AGGREGATION` and `LIST`.

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

The name for the analysis rule.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name for the analysis rule.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name for the analysis rule.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name for the analysis rule.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name for the analysis rule.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name for the analysis rule.

*/ inline AnalysisRule& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name for the analysis rule.

*/ inline AnalysisRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name for the analysis rule.

*/ inline AnalysisRule& WithName(const char* value) { SetName(value); return *this;} /** *

The time the analysis rule was created.

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

The time the analysis rule was created.

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

The time the analysis rule was created.

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

The time the analysis rule was created.

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

The time the analysis rule was created.

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

The time the analysis rule was created.

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

The time the analysis rule was last updated.

*/ inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; } /** *

The time the analysis rule was last updated.

*/ inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; } /** *

The time the analysis rule was last updated.

*/ inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; } /** *

The time the analysis rule was last updated.

*/ inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); } /** *

The time the analysis rule was last updated.

*/ inline AnalysisRule& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *

The time the analysis rule was last updated.

*/ inline AnalysisRule& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;} /** *

A policy that describes the associated data usage limitations.

*/ inline const AnalysisRulePolicy& GetPolicy() const{ return m_policy; } /** *

A policy that describes the associated data usage limitations.

*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *

A policy that describes the associated data usage limitations.

*/ inline void SetPolicy(const AnalysisRulePolicy& value) { m_policyHasBeenSet = true; m_policy = value; } /** *

A policy that describes the associated data usage limitations.

*/ inline void SetPolicy(AnalysisRulePolicy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *

A policy that describes the associated data usage limitations.

*/ inline AnalysisRule& WithPolicy(const AnalysisRulePolicy& value) { SetPolicy(value); return *this;} /** *

A policy that describes the associated data usage limitations.

*/ inline AnalysisRule& WithPolicy(AnalysisRulePolicy&& value) { SetPolicy(std::move(value)); return *this;} private: Aws::String m_collaborationId; bool m_collaborationIdHasBeenSet = false; AnalysisRuleType m_type; bool m_typeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; Aws::Utils::DateTime m_updateTime; bool m_updateTimeHasBeenSet = false; AnalysisRulePolicy m_policy; bool m_policyHasBeenSet = false; }; } // namespace Model } // namespace CleanRooms } // namespace Aws