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

This parameter contains the criteria (either InstanceIds or a tag) used to * specify which EC2 instances are to be sent the command.

See * Also:

AWS * API Reference

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

Currently, we support including only one RunCommandTarget block, which * specifies either an array of InstanceIds or a tag.

*/ inline const Aws::Vector& GetRunCommandTargets() const{ return m_runCommandTargets; } /** *

Currently, we support including only one RunCommandTarget block, which * specifies either an array of InstanceIds or a tag.

*/ inline bool RunCommandTargetsHasBeenSet() const { return m_runCommandTargetsHasBeenSet; } /** *

Currently, we support including only one RunCommandTarget block, which * specifies either an array of InstanceIds or a tag.

*/ inline void SetRunCommandTargets(const Aws::Vector& value) { m_runCommandTargetsHasBeenSet = true; m_runCommandTargets = value; } /** *

Currently, we support including only one RunCommandTarget block, which * specifies either an array of InstanceIds or a tag.

*/ inline void SetRunCommandTargets(Aws::Vector&& value) { m_runCommandTargetsHasBeenSet = true; m_runCommandTargets = std::move(value); } /** *

Currently, we support including only one RunCommandTarget block, which * specifies either an array of InstanceIds or a tag.

*/ inline RunCommandParameters& WithRunCommandTargets(const Aws::Vector& value) { SetRunCommandTargets(value); return *this;} /** *

Currently, we support including only one RunCommandTarget block, which * specifies either an array of InstanceIds or a tag.

*/ inline RunCommandParameters& WithRunCommandTargets(Aws::Vector&& value) { SetRunCommandTargets(std::move(value)); return *this;} /** *

Currently, we support including only one RunCommandTarget block, which * specifies either an array of InstanceIds or a tag.

*/ inline RunCommandParameters& AddRunCommandTargets(const RunCommandTarget& value) { m_runCommandTargetsHasBeenSet = true; m_runCommandTargets.push_back(value); return *this; } /** *

Currently, we support including only one RunCommandTarget block, which * specifies either an array of InstanceIds or a tag.

*/ inline RunCommandParameters& AddRunCommandTargets(RunCommandTarget&& value) { m_runCommandTargetsHasBeenSet = true; m_runCommandTargets.push_back(std::move(value)); return *this; } private: Aws::Vector m_runCommandTargets; bool m_runCommandTargetsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws