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

A structure that contains the configuration settings for a sentiment analysis * task.

See Also:

AWS * API Reference

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

The name of the rule in the sentiment configuration.

*/ inline const Aws::String& GetRuleName() const{ return m_ruleName; } /** *

The name of the rule in the sentiment configuration.

*/ inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; } /** *

The name of the rule in the sentiment configuration.

*/ inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; } /** *

The name of the rule in the sentiment configuration.

*/ inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); } /** *

The name of the rule in the sentiment configuration.

*/ inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); } /** *

The name of the rule in the sentiment configuration.

*/ inline SentimentConfiguration& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;} /** *

The name of the rule in the sentiment configuration.

*/ inline SentimentConfiguration& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;} /** *

The name of the rule in the sentiment configuration.

*/ inline SentimentConfiguration& WithRuleName(const char* value) { SetRuleName(value); return *this;} /** *

The type of sentiment, POSITIVE, NEGATIVE, or * NEUTRAL.

*/ inline const SentimentType& GetSentimentType() const{ return m_sentimentType; } /** *

The type of sentiment, POSITIVE, NEGATIVE, or * NEUTRAL.

*/ inline bool SentimentTypeHasBeenSet() const { return m_sentimentTypeHasBeenSet; } /** *

The type of sentiment, POSITIVE, NEGATIVE, or * NEUTRAL.

*/ inline void SetSentimentType(const SentimentType& value) { m_sentimentTypeHasBeenSet = true; m_sentimentType = value; } /** *

The type of sentiment, POSITIVE, NEGATIVE, or * NEUTRAL.

*/ inline void SetSentimentType(SentimentType&& value) { m_sentimentTypeHasBeenSet = true; m_sentimentType = std::move(value); } /** *

The type of sentiment, POSITIVE, NEGATIVE, or * NEUTRAL.

*/ inline SentimentConfiguration& WithSentimentType(const SentimentType& value) { SetSentimentType(value); return *this;} /** *

The type of sentiment, POSITIVE, NEGATIVE, or * NEUTRAL.

*/ inline SentimentConfiguration& WithSentimentType(SentimentType&& value) { SetSentimentType(std::move(value)); return *this;} /** *

Specifies the analysis interval.

*/ inline int GetTimePeriod() const{ return m_timePeriod; } /** *

Specifies the analysis interval.

*/ inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; } /** *

Specifies the analysis interval.

*/ inline void SetTimePeriod(int value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; } /** *

Specifies the analysis interval.

*/ inline SentimentConfiguration& WithTimePeriod(int value) { SetTimePeriod(value); return *this;} private: Aws::String m_ruleName; bool m_ruleNameHasBeenSet = false; SentimentType m_sentimentType; bool m_sentimentTypeHasBeenSet = false; int m_timePeriod; bool m_timePeriodHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMediaPipelines } // namespace Aws