7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
54 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
85 inline void SetRestartAttemptPeriod(
int value) { m_restartAttemptPeriodHasBeenSet =
true; m_restartAttemptPeriod = value; }
91 bool m_enabledHasBeenSet =
false;
94 bool m_ignoredExitCodesHasBeenSet =
false;
96 int m_restartAttemptPeriod;
97 bool m_restartAttemptPeriodHasBeenSet =
false;
void SetRestartAttemptPeriod(int value)
void SetIgnoredExitCodes(Aws::Vector< int > &&value)
ContainerRestartPolicy & WithRestartAttemptPeriod(int value)
int GetRestartAttemptPeriod() const
void SetIgnoredExitCodes(const Aws::Vector< int > &value)
ContainerRestartPolicy & WithIgnoredExitCodes(Aws::Vector< int > &&value)
AWS_ECS_API ContainerRestartPolicy()
ContainerRestartPolicy & AddIgnoredExitCodes(int value)
ContainerRestartPolicy & WithIgnoredExitCodes(const Aws::Vector< int > &value)
bool IgnoredExitCodesHasBeenSet() const
const Aws::Vector< int > & GetIgnoredExitCodes() const
bool RestartAttemptPeriodHasBeenSet() const
AWS_ECS_API ContainerRestartPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ContainerRestartPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EnabledHasBeenSet() const
void SetEnabled(bool value)
ContainerRestartPolicy & WithEnabled(bool value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue