/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECS { namespace Model { /** *

A list of namespaced kernel parameters to set in the container. This * parameter maps to Sysctls in the Create * a container section of the Docker Remote API and the * --sysctl option to docker run.

It * is not recommended that you specify network-related systemControls * parameters for multiple containers in a single task that also uses either the * awsvpc or host network mode for the following * reasons:

  • For tasks that use the awsvpc network * mode, if you set systemControls for any container, it applies to * all containers in the task. If you set different systemControls for * multiple containers in a single task, the container that is started last * determines which systemControls take effect.

  • For * tasks that use the host network mode, the * systemControls parameter applies to the container instance's kernel * parameter as well as that of all containers of any tasks running on that * container instance.

See Also:

AWS * API Reference

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

The namespaced kernel parameter for which to set a value.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The namespaced kernel parameter for which to set a value.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The namespaced kernel parameter for which to set a value.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

The namespaced kernel parameter for which to set a value.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

The namespaced kernel parameter for which to set a value.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

The namespaced kernel parameter for which to set a value.

*/ inline SystemControl& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespaced kernel parameter for which to set a value.

*/ inline SystemControl& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespaced kernel parameter for which to set a value.

*/ inline SystemControl& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The value for the namespaced kernel parameter specified in * namespace.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value for the namespaced kernel parameter specified in * namespace.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value for the namespaced kernel parameter specified in * namespace.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value for the namespaced kernel parameter specified in * namespace.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value for the namespaced kernel parameter specified in * namespace.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value for the namespaced kernel parameter specified in * namespace.

*/ inline SystemControl& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value for the namespaced kernel parameter specified in * namespace.

*/ inline SystemControl& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value for the namespaced kernel parameter specified in * namespace.

*/ inline SystemControl& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_namespace; bool m_namespaceHasBeenSet; Aws::String m_value; bool m_valueHasBeenSet; }; } // namespace Model } // namespace ECS } // namespace Aws