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

Contains information about the condition.

See Also:

AWS * API Reference

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

Represents an equal condition to be applied to a single field * when querying for findings.

*/ inline const Aws::Vector& GetEquals() const{ return m_equals; } /** *

Represents an equal condition to be applied to a single field * when querying for findings.

*/ inline bool EqualsHasBeenSet() const { return m_equalsHasBeenSet; } /** *

Represents an equal condition to be applied to a single field * when querying for findings.

*/ inline void SetEquals(const Aws::Vector& value) { m_equalsHasBeenSet = true; m_equals = value; } /** *

Represents an equal condition to be applied to a single field * when querying for findings.

*/ inline void SetEquals(Aws::Vector&& value) { m_equalsHasBeenSet = true; m_equals = std::move(value); } /** *

Represents an equal condition to be applied to a single field * when querying for findings.

*/ inline Condition& WithEquals(const Aws::Vector& value) { SetEquals(value); return *this;} /** *

Represents an equal condition to be applied to a single field * when querying for findings.

*/ inline Condition& WithEquals(Aws::Vector&& value) { SetEquals(std::move(value)); return *this;} /** *

Represents an equal condition to be applied to a single field * when querying for findings.

*/ inline Condition& AddEquals(const Aws::String& value) { m_equalsHasBeenSet = true; m_equals.push_back(value); return *this; } /** *

Represents an equal condition to be applied to a single field * when querying for findings.

*/ inline Condition& AddEquals(Aws::String&& value) { m_equalsHasBeenSet = true; m_equals.push_back(std::move(value)); return *this; } /** *

Represents an equal condition to be applied to a single field * when querying for findings.

*/ inline Condition& AddEquals(const char* value) { m_equalsHasBeenSet = true; m_equals.push_back(value); return *this; } /** *

Represents a not equal condition to be applied to a single field * when querying for findings.

*/ inline const Aws::Vector& GetNotEquals() const{ return m_notEquals; } /** *

Represents a not equal condition to be applied to a single field * when querying for findings.

*/ inline bool NotEqualsHasBeenSet() const { return m_notEqualsHasBeenSet; } /** *

Represents a not equal condition to be applied to a single field * when querying for findings.

*/ inline void SetNotEquals(const Aws::Vector& value) { m_notEqualsHasBeenSet = true; m_notEquals = value; } /** *

Represents a not equal condition to be applied to a single field * when querying for findings.

*/ inline void SetNotEquals(Aws::Vector&& value) { m_notEqualsHasBeenSet = true; m_notEquals = std::move(value); } /** *

Represents a not equal condition to be applied to a single field * when querying for findings.

*/ inline Condition& WithNotEquals(const Aws::Vector& value) { SetNotEquals(value); return *this;} /** *

Represents a not equal condition to be applied to a single field * when querying for findings.

*/ inline Condition& WithNotEquals(Aws::Vector&& value) { SetNotEquals(std::move(value)); return *this;} /** *

Represents a not equal condition to be applied to a single field * when querying for findings.

*/ inline Condition& AddNotEquals(const Aws::String& value) { m_notEqualsHasBeenSet = true; m_notEquals.push_back(value); return *this; } /** *

Represents a not equal condition to be applied to a single field * when querying for findings.

*/ inline Condition& AddNotEquals(Aws::String&& value) { m_notEqualsHasBeenSet = true; m_notEquals.push_back(std::move(value)); return *this; } /** *

Represents a not equal condition to be applied to a single field * when querying for findings.

*/ inline Condition& AddNotEquals(const char* value) { m_notEqualsHasBeenSet = true; m_notEquals.push_back(value); return *this; } /** *

Represents a greater than condition to be applied to a single field * when querying for findings.

*/ inline long long GetGreaterThan() const{ return m_greaterThan; } /** *

Represents a greater than condition to be applied to a single field * when querying for findings.

*/ inline bool GreaterThanHasBeenSet() const { return m_greaterThanHasBeenSet; } /** *

Represents a greater than condition to be applied to a single field * when querying for findings.

*/ inline void SetGreaterThan(long long value) { m_greaterThanHasBeenSet = true; m_greaterThan = value; } /** *

Represents a greater than condition to be applied to a single field * when querying for findings.

*/ inline Condition& WithGreaterThan(long long value) { SetGreaterThan(value); return *this;} /** *

Represents a greater than or equal condition to be applied to a single * field when querying for findings.

*/ inline long long GetGreaterThanOrEqual() const{ return m_greaterThanOrEqual; } /** *

Represents a greater than or equal condition to be applied to a single * field when querying for findings.

*/ inline bool GreaterThanOrEqualHasBeenSet() const { return m_greaterThanOrEqualHasBeenSet; } /** *

Represents a greater than or equal condition to be applied to a single * field when querying for findings.

*/ inline void SetGreaterThanOrEqual(long long value) { m_greaterThanOrEqualHasBeenSet = true; m_greaterThanOrEqual = value; } /** *

Represents a greater than or equal condition to be applied to a single * field when querying for findings.

*/ inline Condition& WithGreaterThanOrEqual(long long value) { SetGreaterThanOrEqual(value); return *this;} /** *

Represents a less than condition to be applied to a single field when * querying for findings.

*/ inline long long GetLessThan() const{ return m_lessThan; } /** *

Represents a less than condition to be applied to a single field when * querying for findings.

*/ inline bool LessThanHasBeenSet() const { return m_lessThanHasBeenSet; } /** *

Represents a less than condition to be applied to a single field when * querying for findings.

*/ inline void SetLessThan(long long value) { m_lessThanHasBeenSet = true; m_lessThan = value; } /** *

Represents a less than condition to be applied to a single field when * querying for findings.

*/ inline Condition& WithLessThan(long long value) { SetLessThan(value); return *this;} /** *

Represents a less than or equal condition to be applied to a single * field when querying for findings.

*/ inline long long GetLessThanOrEqual() const{ return m_lessThanOrEqual; } /** *

Represents a less than or equal condition to be applied to a single * field when querying for findings.

*/ inline bool LessThanOrEqualHasBeenSet() const { return m_lessThanOrEqualHasBeenSet; } /** *

Represents a less than or equal condition to be applied to a single * field when querying for findings.

*/ inline void SetLessThanOrEqual(long long value) { m_lessThanOrEqualHasBeenSet = true; m_lessThanOrEqual = value; } /** *

Represents a less than or equal condition to be applied to a single * field when querying for findings.

*/ inline Condition& WithLessThanOrEqual(long long value) { SetLessThanOrEqual(value); return *this;} private: Aws::Vector m_equals; bool m_equalsHasBeenSet = false; Aws::Vector m_notEquals; bool m_notEqualsHasBeenSet = false; long long m_greaterThan; bool m_greaterThanHasBeenSet = false; long long m_greaterThanOrEqual; bool m_greaterThanOrEqualHasBeenSet = false; long long m_lessThan; bool m_lessThanHasBeenSet = false; long long m_lessThanOrEqual; bool m_lessThanOrEqualHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws