/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace CustomerProfiles { namespace Model { /** */ class CreateCalculatedAttributeDefinitionRequest : public CustomerProfilesRequest { public: AWS_CUSTOMERPROFILES_API CreateCalculatedAttributeDefinitionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateCalculatedAttributeDefinition"; } AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override; /** *

The unique name of the domain.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The unique name of the domain.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The unique name of the domain.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

The unique name of the domain.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

The unique name of the domain.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

The unique name of the domain.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The unique name of the domain.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The unique name of the domain.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

The unique name of the calculated attribute.

*/ inline const Aws::String& GetCalculatedAttributeName() const{ return m_calculatedAttributeName; } /** *

The unique name of the calculated attribute.

*/ inline bool CalculatedAttributeNameHasBeenSet() const { return m_calculatedAttributeNameHasBeenSet; } /** *

The unique name of the calculated attribute.

*/ inline void SetCalculatedAttributeName(const Aws::String& value) { m_calculatedAttributeNameHasBeenSet = true; m_calculatedAttributeName = value; } /** *

The unique name of the calculated attribute.

*/ inline void SetCalculatedAttributeName(Aws::String&& value) { m_calculatedAttributeNameHasBeenSet = true; m_calculatedAttributeName = std::move(value); } /** *

The unique name of the calculated attribute.

*/ inline void SetCalculatedAttributeName(const char* value) { m_calculatedAttributeNameHasBeenSet = true; m_calculatedAttributeName.assign(value); } /** *

The unique name of the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithCalculatedAttributeName(const Aws::String& value) { SetCalculatedAttributeName(value); return *this;} /** *

The unique name of the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithCalculatedAttributeName(Aws::String&& value) { SetCalculatedAttributeName(std::move(value)); return *this;} /** *

The unique name of the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithCalculatedAttributeName(const char* value) { SetCalculatedAttributeName(value); return *this;} /** *

The display name of the calculated attribute.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The display name of the calculated attribute.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The display name of the calculated attribute.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The display name of the calculated attribute.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The display name of the calculated attribute.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The display name of the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The display name of the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The display name of the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The description of the calculated attribute.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the calculated attribute.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the calculated attribute.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the calculated attribute.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the calculated attribute.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

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

*/ inline const AttributeDetails& GetAttributeDetails() const{ return m_attributeDetails; } /** *

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

*/ inline bool AttributeDetailsHasBeenSet() const { return m_attributeDetailsHasBeenSet; } /** *

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

*/ inline void SetAttributeDetails(const AttributeDetails& value) { m_attributeDetailsHasBeenSet = true; m_attributeDetails = value; } /** *

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

*/ inline void SetAttributeDetails(AttributeDetails&& value) { m_attributeDetailsHasBeenSet = true; m_attributeDetails = std::move(value); } /** *

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

*/ inline CreateCalculatedAttributeDefinitionRequest& WithAttributeDetails(const AttributeDetails& value) { SetAttributeDetails(value); return *this;} /** *

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

*/ inline CreateCalculatedAttributeDefinitionRequest& WithAttributeDetails(AttributeDetails&& value) { SetAttributeDetails(std::move(value)); return *this;} /** *

The conditions including range, object count, and threshold for the * calculated attribute.

*/ inline const Conditions& GetConditions() const{ return m_conditions; } /** *

The conditions including range, object count, and threshold for the * calculated attribute.

*/ inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; } /** *

The conditions including range, object count, and threshold for the * calculated attribute.

*/ inline void SetConditions(const Conditions& value) { m_conditionsHasBeenSet = true; m_conditions = value; } /** *

The conditions including range, object count, and threshold for the * calculated attribute.

*/ inline void SetConditions(Conditions&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); } /** *

The conditions including range, object count, and threshold for the * calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithConditions(const Conditions& value) { SetConditions(value); return *this;} /** *

The conditions including range, object count, and threshold for the * calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithConditions(Conditions&& value) { SetConditions(std::move(value)); return *this;} /** *

The aggregation operation to perform for the calculated attribute.

*/ inline const Statistic& GetStatistic() const{ return m_statistic; } /** *

The aggregation operation to perform for the calculated attribute.

*/ inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** *

The aggregation operation to perform for the calculated attribute.

*/ inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** *

The aggregation operation to perform for the calculated attribute.

*/ inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** *

The aggregation operation to perform for the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;} /** *

The aggregation operation to perform for the calculated attribute.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;} /** *

The tags used to organize, track, or control access for this resource.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateCalculatedAttributeDefinitionRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateCalculatedAttributeDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateCalculatedAttributeDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateCalculatedAttributeDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateCalculatedAttributeDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateCalculatedAttributeDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateCalculatedAttributeDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateCalculatedAttributeDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::String m_calculatedAttributeName; bool m_calculatedAttributeNameHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; AttributeDetails m_attributeDetails; bool m_attributeDetailsHasBeenSet = false; Conditions m_conditions; bool m_conditionsHasBeenSet = false; Statistic m_statistic; bool m_statisticHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CustomerProfiles } // namespace Aws