/** * 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 SSMIncidents { namespace Model { /** *

A conditional statement with which to compare a value, after a timestamp, * before a timestamp, or equal to a string or integer. If multiple conditions are * specified, the conditionals become an ANDed statement. If multiple * values are specified for a conditional, the values are * ORd.

See Also:

AWS * API Reference

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

After the specified timestamp.

*/ inline const Aws::Utils::DateTime& GetAfter() const{ return m_after; } /** *

After the specified timestamp.

*/ inline bool AfterHasBeenSet() const { return m_afterHasBeenSet; } /** *

After the specified timestamp.

*/ inline void SetAfter(const Aws::Utils::DateTime& value) { m_afterHasBeenSet = true; m_after = value; } /** *

After the specified timestamp.

*/ inline void SetAfter(Aws::Utils::DateTime&& value) { m_afterHasBeenSet = true; m_after = std::move(value); } /** *

After the specified timestamp.

*/ inline Condition& WithAfter(const Aws::Utils::DateTime& value) { SetAfter(value); return *this;} /** *

After the specified timestamp.

*/ inline Condition& WithAfter(Aws::Utils::DateTime&& value) { SetAfter(std::move(value)); return *this;} /** *

Before the specified timestamp

*/ inline const Aws::Utils::DateTime& GetBefore() const{ return m_before; } /** *

Before the specified timestamp

*/ inline bool BeforeHasBeenSet() const { return m_beforeHasBeenSet; } /** *

Before the specified timestamp

*/ inline void SetBefore(const Aws::Utils::DateTime& value) { m_beforeHasBeenSet = true; m_before = value; } /** *

Before the specified timestamp

*/ inline void SetBefore(Aws::Utils::DateTime&& value) { m_beforeHasBeenSet = true; m_before = std::move(value); } /** *

Before the specified timestamp

*/ inline Condition& WithBefore(const Aws::Utils::DateTime& value) { SetBefore(value); return *this;} /** *

Before the specified timestamp

*/ inline Condition& WithBefore(Aws::Utils::DateTime&& value) { SetBefore(std::move(value)); return *this;} /** *

The value is equal to the provided string or integer.

*/ inline const AttributeValueList& GetEquals() const{ return m_equals; } /** *

The value is equal to the provided string or integer.

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

The value is equal to the provided string or integer.

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

The value is equal to the provided string or integer.

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

The value is equal to the provided string or integer.

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

The value is equal to the provided string or integer.

*/ inline Condition& WithEquals(AttributeValueList&& value) { SetEquals(std::move(value)); return *this;} private: Aws::Utils::DateTime m_after; bool m_afterHasBeenSet = false; Aws::Utils::DateTime m_before; bool m_beforeHasBeenSet = false; AttributeValueList m_equals; bool m_equalsHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws