/** * 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.

We don't recommend that you specify network-related * systemControls parameters for multiple containers in a single task. * This task also uses either the awsvpc or host network * mode. It does it 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's 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 and that of all containers of any tasks running on that * container instance.

See Also:

AWS * API Reference

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

The namespaced kernel parameter to set a value for.

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

The namespaced kernel parameter to set a value for.

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

The namespaced kernel parameter to set a value for.

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

The namespaced kernel parameter to set a value for.

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

The namespaced kernel parameter to set a value for.

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

The namespaced kernel parameter to set a value for.

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

The namespaced kernel parameter to set a value for.

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

The namespaced kernel parameter to set a value for.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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