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

An array of structures that define the traffic allocation percentages among * the feature variations during each step of a launch. This also defines the start * time of each step.

See Also:

AWS * API Reference

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

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch. This also defines the * start time of each step.

*/ inline const Aws::Vector& GetSteps() const{ return m_steps; } /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch. This also defines the * start time of each step.

*/ inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; } /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch. This also defines the * start time of each step.

*/ inline void SetSteps(const Aws::Vector& value) { m_stepsHasBeenSet = true; m_steps = value; } /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch. This also defines the * start time of each step.

*/ inline void SetSteps(Aws::Vector&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); } /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch. This also defines the * start time of each step.

*/ inline ScheduledSplitsLaunchDefinition& WithSteps(const Aws::Vector& value) { SetSteps(value); return *this;} /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch. This also defines the * start time of each step.

*/ inline ScheduledSplitsLaunchDefinition& WithSteps(Aws::Vector&& value) { SetSteps(std::move(value)); return *this;} /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch. This also defines the * start time of each step.

*/ inline ScheduledSplitsLaunchDefinition& AddSteps(const ScheduledSplit& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; } /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch. This also defines the * start time of each step.

*/ inline ScheduledSplitsLaunchDefinition& AddSteps(ScheduledSplit&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; } private: Aws::Vector m_steps; bool m_stepsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws