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

Mathematical expression and a list of attribute items specified in that * expression.

See Also:

AWS * API Reference

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

A list of attribute items specified in the mathematical expression.

*/ inline const Aws::Vector& GetAttributes() const{ return m_attributes; } /** *

A list of attribute items specified in the mathematical expression.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

A list of attribute items specified in the mathematical expression.

*/ inline void SetAttributes(const Aws::Vector& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

A list of attribute items specified in the mathematical expression.

*/ inline void SetAttributes(Aws::Vector&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

A list of attribute items specified in the mathematical expression.

*/ inline AttributeDetails& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

A list of attribute items specified in the mathematical expression.

*/ inline AttributeDetails& WithAttributes(Aws::Vector&& value) { SetAttributes(std::move(value)); return *this;} /** *

A list of attribute items specified in the mathematical expression.

*/ inline AttributeDetails& AddAttributes(const AttributeItem& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *

A list of attribute items specified in the mathematical expression.

*/ inline AttributeDetails& AddAttributes(AttributeItem&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } /** *

Mathematical expression that is performed on attribute items provided in the * attribute list. Each element in the expression should follow the structure of * \"{ObjectTypeName.AttributeName}\".

*/ inline const Aws::String& GetExpression() const{ return m_expression; } /** *

Mathematical expression that is performed on attribute items provided in the * attribute list. Each element in the expression should follow the structure of * \"{ObjectTypeName.AttributeName}\".

*/ inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } /** *

Mathematical expression that is performed on attribute items provided in the * attribute list. Each element in the expression should follow the structure of * \"{ObjectTypeName.AttributeName}\".

*/ inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } /** *

Mathematical expression that is performed on attribute items provided in the * attribute list. Each element in the expression should follow the structure of * \"{ObjectTypeName.AttributeName}\".

*/ inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } /** *

Mathematical expression that is performed on attribute items provided in the * attribute list. Each element in the expression should follow the structure of * \"{ObjectTypeName.AttributeName}\".

*/ inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } /** *

Mathematical expression that is performed on attribute items provided in the * attribute list. Each element in the expression should follow the structure of * \"{ObjectTypeName.AttributeName}\".

*/ inline AttributeDetails& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} /** *

Mathematical expression that is performed on attribute items provided in the * attribute list. Each element in the expression should follow the structure of * \"{ObjectTypeName.AttributeName}\".

*/ inline AttributeDetails& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} /** *

Mathematical expression that is performed on attribute items provided in the * attribute list. Each element in the expression should follow the structure of * \"{ObjectTypeName.AttributeName}\".

*/ inline AttributeDetails& WithExpression(const char* value) { SetExpression(value); return *this;} private: Aws::Vector m_attributes; bool m_attributesHasBeenSet = false; Aws::String m_expression; bool m_expressionHasBeenSet = false; }; } // namespace Model } // namespace CustomerProfiles } // namespace Aws