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

Includes information about tags you define to assign tagged resources to a * backup plan.

See Also:

AWS * API Reference

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

The key in a key-value pair. For example, in the tag Department: * Accounting, Department is the key.

*/ inline const Aws::String& GetConditionKey() const{ return m_conditionKey; } /** *

The key in a key-value pair. For example, in the tag Department: * Accounting, Department is the key.

*/ inline bool ConditionKeyHasBeenSet() const { return m_conditionKeyHasBeenSet; } /** *

The key in a key-value pair. For example, in the tag Department: * Accounting, Department is the key.

*/ inline void SetConditionKey(const Aws::String& value) { m_conditionKeyHasBeenSet = true; m_conditionKey = value; } /** *

The key in a key-value pair. For example, in the tag Department: * Accounting, Department is the key.

*/ inline void SetConditionKey(Aws::String&& value) { m_conditionKeyHasBeenSet = true; m_conditionKey = std::move(value); } /** *

The key in a key-value pair. For example, in the tag Department: * Accounting, Department is the key.

*/ inline void SetConditionKey(const char* value) { m_conditionKeyHasBeenSet = true; m_conditionKey.assign(value); } /** *

The key in a key-value pair. For example, in the tag Department: * Accounting, Department is the key.

*/ inline ConditionParameter& WithConditionKey(const Aws::String& value) { SetConditionKey(value); return *this;} /** *

The key in a key-value pair. For example, in the tag Department: * Accounting, Department is the key.

*/ inline ConditionParameter& WithConditionKey(Aws::String&& value) { SetConditionKey(std::move(value)); return *this;} /** *

The key in a key-value pair. For example, in the tag Department: * Accounting, Department is the key.

*/ inline ConditionParameter& WithConditionKey(const char* value) { SetConditionKey(value); return *this;} /** *

The value in a key-value pair. For example, in the tag Department: * Accounting, Accounting is the value.

*/ inline const Aws::String& GetConditionValue() const{ return m_conditionValue; } /** *

The value in a key-value pair. For example, in the tag Department: * Accounting, Accounting is the value.

*/ inline bool ConditionValueHasBeenSet() const { return m_conditionValueHasBeenSet; } /** *

The value in a key-value pair. For example, in the tag Department: * Accounting, Accounting is the value.

*/ inline void SetConditionValue(const Aws::String& value) { m_conditionValueHasBeenSet = true; m_conditionValue = value; } /** *

The value in a key-value pair. For example, in the tag Department: * Accounting, Accounting is the value.

*/ inline void SetConditionValue(Aws::String&& value) { m_conditionValueHasBeenSet = true; m_conditionValue = std::move(value); } /** *

The value in a key-value pair. For example, in the tag Department: * Accounting, Accounting is the value.

*/ inline void SetConditionValue(const char* value) { m_conditionValueHasBeenSet = true; m_conditionValue.assign(value); } /** *

The value in a key-value pair. For example, in the tag Department: * Accounting, Accounting is the value.

*/ inline ConditionParameter& WithConditionValue(const Aws::String& value) { SetConditionValue(value); return *this;} /** *

The value in a key-value pair. For example, in the tag Department: * Accounting, Accounting is the value.

*/ inline ConditionParameter& WithConditionValue(Aws::String&& value) { SetConditionValue(std::move(value)); return *this;} /** *

The value in a key-value pair. For example, in the tag Department: * Accounting, Accounting is the value.

*/ inline ConditionParameter& WithConditionValue(const char* value) { SetConditionValue(value); return *this;} private: Aws::String m_conditionKey; bool m_conditionKeyHasBeenSet = false; Aws::String m_conditionValue; bool m_conditionValueHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws