/** * 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 CloudWatchEvidently { namespace Model { /** */ class UpdateLaunchRequest : public CloudWatchEvidentlyRequest { public: AWS_CLOUDWATCHEVIDENTLY_API UpdateLaunchRequest(); // 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 "UpdateLaunch"; } AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override; /** *

An optional description for the launch.

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

An optional description for the launch.

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

An optional description for the launch.

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

An optional description for the launch.

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

An optional description for the launch.

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

An optional description for the launch.

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

An optional description for the launch.

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

An optional description for the launch.

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

An array of structures that contains the feature and variations that are to * be used for the launch.

*/ inline const Aws::Vector& GetGroups() const{ return m_groups; } /** *

An array of structures that contains the feature and variations that are to * be used for the launch.

*/ inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; } /** *

An array of structures that contains the feature and variations that are to * be used for the launch.

*/ inline void SetGroups(const Aws::Vector& value) { m_groupsHasBeenSet = true; m_groups = value; } /** *

An array of structures that contains the feature and variations that are to * be used for the launch.

*/ inline void SetGroups(Aws::Vector&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); } /** *

An array of structures that contains the feature and variations that are to * be used for the launch.

*/ inline UpdateLaunchRequest& WithGroups(const Aws::Vector& value) { SetGroups(value); return *this;} /** *

An array of structures that contains the feature and variations that are to * be used for the launch.

*/ inline UpdateLaunchRequest& WithGroups(Aws::Vector&& value) { SetGroups(std::move(value)); return *this;} /** *

An array of structures that contains the feature and variations that are to * be used for the launch.

*/ inline UpdateLaunchRequest& AddGroups(const LaunchGroupConfig& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *

An array of structures that contains the feature and variations that are to * be used for the launch.

*/ inline UpdateLaunchRequest& AddGroups(LaunchGroupConfig&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; } /** *

The name of the launch that is to be updated.

*/ inline const Aws::String& GetLaunch() const{ return m_launch; } /** *

The name of the launch that is to be updated.

*/ inline bool LaunchHasBeenSet() const { return m_launchHasBeenSet; } /** *

The name of the launch that is to be updated.

*/ inline void SetLaunch(const Aws::String& value) { m_launchHasBeenSet = true; m_launch = value; } /** *

The name of the launch that is to be updated.

*/ inline void SetLaunch(Aws::String&& value) { m_launchHasBeenSet = true; m_launch = std::move(value); } /** *

The name of the launch that is to be updated.

*/ inline void SetLaunch(const char* value) { m_launchHasBeenSet = true; m_launch.assign(value); } /** *

The name of the launch that is to be updated.

*/ inline UpdateLaunchRequest& WithLaunch(const Aws::String& value) { SetLaunch(value); return *this;} /** *

The name of the launch that is to be updated.

*/ inline UpdateLaunchRequest& WithLaunch(Aws::String&& value) { SetLaunch(std::move(value)); return *this;} /** *

The name of the launch that is to be updated.

*/ inline UpdateLaunchRequest& WithLaunch(const char* value) { SetLaunch(value); return *this;} /** *

An array of structures that define the metrics that will be used to monitor * the launch performance.

*/ inline const Aws::Vector& GetMetricMonitors() const{ return m_metricMonitors; } /** *

An array of structures that define the metrics that will be used to monitor * the launch performance.

*/ inline bool MetricMonitorsHasBeenSet() const { return m_metricMonitorsHasBeenSet; } /** *

An array of structures that define the metrics that will be used to monitor * the launch performance.

*/ inline void SetMetricMonitors(const Aws::Vector& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors = value; } /** *

An array of structures that define the metrics that will be used to monitor * the launch performance.

*/ inline void SetMetricMonitors(Aws::Vector&& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors = std::move(value); } /** *

An array of structures that define the metrics that will be used to monitor * the launch performance.

*/ inline UpdateLaunchRequest& WithMetricMonitors(const Aws::Vector& value) { SetMetricMonitors(value); return *this;} /** *

An array of structures that define the metrics that will be used to monitor * the launch performance.

*/ inline UpdateLaunchRequest& WithMetricMonitors(Aws::Vector&& value) { SetMetricMonitors(std::move(value)); return *this;} /** *

An array of structures that define the metrics that will be used to monitor * the launch performance.

*/ inline UpdateLaunchRequest& AddMetricMonitors(const MetricMonitorConfig& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors.push_back(value); return *this; } /** *

An array of structures that define the metrics that will be used to monitor * the launch performance.

*/ inline UpdateLaunchRequest& AddMetricMonitors(MetricMonitorConfig&& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors.push_back(std::move(value)); return *this; } /** *

The name or ARN of the project that contains the launch that you want to * update.

*/ inline const Aws::String& GetProject() const{ return m_project; } /** *

The name or ARN of the project that contains the launch that you want to * update.

*/ inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; } /** *

The name or ARN of the project that contains the launch that you want to * update.

*/ inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; } /** *

The name or ARN of the project that contains the launch that you want to * update.

*/ inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); } /** *

The name or ARN of the project that contains the launch that you want to * update.

*/ inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); } /** *

The name or ARN of the project that contains the launch that you want to * update.

*/ inline UpdateLaunchRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;} /** *

The name or ARN of the project that contains the launch that you want to * update.

*/ inline UpdateLaunchRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;} /** *

The name or ARN of the project that contains the launch that you want to * update.

*/ inline UpdateLaunchRequest& WithProject(const char* value) { SetProject(value); return *this;} /** *

When Evidently assigns a particular user session to a launch, it must use a * randomization ID to determine which variation the user session is served. This * randomization ID is a combination of the entity ID and * randomizationSalt. If you omit randomizationSalt, * Evidently uses the launch name as the randomizationSalt.

*/ inline const Aws::String& GetRandomizationSalt() const{ return m_randomizationSalt; } /** *

When Evidently assigns a particular user session to a launch, it must use a * randomization ID to determine which variation the user session is served. This * randomization ID is a combination of the entity ID and * randomizationSalt. If you omit randomizationSalt, * Evidently uses the launch name as the randomizationSalt.

*/ inline bool RandomizationSaltHasBeenSet() const { return m_randomizationSaltHasBeenSet; } /** *

When Evidently assigns a particular user session to a launch, it must use a * randomization ID to determine which variation the user session is served. This * randomization ID is a combination of the entity ID and * randomizationSalt. If you omit randomizationSalt, * Evidently uses the launch name as the randomizationSalt.

*/ inline void SetRandomizationSalt(const Aws::String& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = value; } /** *

When Evidently assigns a particular user session to a launch, it must use a * randomization ID to determine which variation the user session is served. This * randomization ID is a combination of the entity ID and * randomizationSalt. If you omit randomizationSalt, * Evidently uses the launch name as the randomizationSalt.

*/ inline void SetRandomizationSalt(Aws::String&& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = std::move(value); } /** *

When Evidently assigns a particular user session to a launch, it must use a * randomization ID to determine which variation the user session is served. This * randomization ID is a combination of the entity ID and * randomizationSalt. If you omit randomizationSalt, * Evidently uses the launch name as the randomizationSalt.

*/ inline void SetRandomizationSalt(const char* value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt.assign(value); } /** *

When Evidently assigns a particular user session to a launch, it must use a * randomization ID to determine which variation the user session is served. This * randomization ID is a combination of the entity ID and * randomizationSalt. If you omit randomizationSalt, * Evidently uses the launch name as the randomizationSalt.

*/ inline UpdateLaunchRequest& WithRandomizationSalt(const Aws::String& value) { SetRandomizationSalt(value); return *this;} /** *

When Evidently assigns a particular user session to a launch, it must use a * randomization ID to determine which variation the user session is served. This * randomization ID is a combination of the entity ID and * randomizationSalt. If you omit randomizationSalt, * Evidently uses the launch name as the randomizationSalt.

*/ inline UpdateLaunchRequest& WithRandomizationSalt(Aws::String&& value) { SetRandomizationSalt(std::move(value)); return *this;} /** *

When Evidently assigns a particular user session to a launch, it must use a * randomization ID to determine which variation the user session is served. This * randomization ID is a combination of the entity ID and * randomizationSalt. If you omit randomizationSalt, * Evidently uses the launch name as the randomizationSalt.

*/ inline UpdateLaunchRequest& WithRandomizationSalt(const char* value) { SetRandomizationSalt(value); return *this;} /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch.

*/ inline const ScheduledSplitsLaunchConfig& GetScheduledSplitsConfig() const{ return m_scheduledSplitsConfig; } /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch.

*/ inline bool ScheduledSplitsConfigHasBeenSet() const { return m_scheduledSplitsConfigHasBeenSet; } /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch.

*/ inline void SetScheduledSplitsConfig(const ScheduledSplitsLaunchConfig& value) { m_scheduledSplitsConfigHasBeenSet = true; m_scheduledSplitsConfig = value; } /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch.

*/ inline void SetScheduledSplitsConfig(ScheduledSplitsLaunchConfig&& value) { m_scheduledSplitsConfigHasBeenSet = true; m_scheduledSplitsConfig = std::move(value); } /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch.

*/ inline UpdateLaunchRequest& WithScheduledSplitsConfig(const ScheduledSplitsLaunchConfig& value) { SetScheduledSplitsConfig(value); return *this;} /** *

An array of structures that define the traffic allocation percentages among * the feature variations during each step of the launch.

*/ inline UpdateLaunchRequest& WithScheduledSplitsConfig(ScheduledSplitsLaunchConfig&& value) { SetScheduledSplitsConfig(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_groups; bool m_groupsHasBeenSet = false; Aws::String m_launch; bool m_launchHasBeenSet = false; Aws::Vector m_metricMonitors; bool m_metricMonitorsHasBeenSet = false; Aws::String m_project; bool m_projectHasBeenSet = false; Aws::String m_randomizationSalt; bool m_randomizationSaltHasBeenSet = false; ScheduledSplitsLaunchConfig m_scheduledSplitsConfig; bool m_scheduledSplitsConfigHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws