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

A leaf node condition which can be used to specify a string condition. *

See Also:

AWS * API Reference

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

The name of the field in the string condition.

*/ inline const Aws::String& GetFieldName() const{ return m_fieldName; } /** *

The name of the field in the string condition.

*/ inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; } /** *

The name of the field in the string condition.

*/ inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; } /** *

The name of the field in the string condition.

*/ inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); } /** *

The name of the field in the string condition.

*/ inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); } /** *

The name of the field in the string condition.

*/ inline StringCondition& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;} /** *

The name of the field in the string condition.

*/ inline StringCondition& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;} /** *

The name of the field in the string condition.

*/ inline StringCondition& WithFieldName(const char* value) { SetFieldName(value); return *this;} /** *

The value of the string.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of the string.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the string.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the string.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the string.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of the string.

*/ inline StringCondition& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of the string.

*/ inline StringCondition& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of the string.

*/ inline StringCondition& WithValue(const char* value) { SetValue(value); return *this;} /** *

The type of comparison to be made when evaluating the string condition.

*/ inline const StringComparisonType& GetComparisonType() const{ return m_comparisonType; } /** *

The type of comparison to be made when evaluating the string condition.

*/ inline bool ComparisonTypeHasBeenSet() const { return m_comparisonTypeHasBeenSet; } /** *

The type of comparison to be made when evaluating the string condition.

*/ inline void SetComparisonType(const StringComparisonType& value) { m_comparisonTypeHasBeenSet = true; m_comparisonType = value; } /** *

The type of comparison to be made when evaluating the string condition.

*/ inline void SetComparisonType(StringComparisonType&& value) { m_comparisonTypeHasBeenSet = true; m_comparisonType = std::move(value); } /** *

The type of comparison to be made when evaluating the string condition.

*/ inline StringCondition& WithComparisonType(const StringComparisonType& value) { SetComparisonType(value); return *this;} /** *

The type of comparison to be made when evaluating the string condition.

*/ inline StringCondition& WithComparisonType(StringComparisonType&& value) { SetComparisonType(std::move(value)); return *this;} private: Aws::String m_fieldName; bool m_fieldNameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; StringComparisonType m_comparisonType; bool m_comparisonTypeHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws