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; }
66 template<
typename IgnoredExitCodesT = Aws::Vector<
int>>
67 void SetIgnoredExitCodes(IgnoredExitCodesT&& value) { m_ignoredExitCodesHasBeenSet =
true; m_ignoredExitCodes = std::forward<IgnoredExitCodesT>(value); }
68 template<
typename IgnoredExitCodesT = Aws::Vector<
int>>
85 inline void SetRestartAttemptPeriod(
int value) { m_restartAttemptPeriodHasBeenSet =
true; m_restartAttemptPeriod = value; }
90 bool m_enabled{
false};
91 bool m_enabledHasBeenSet =
false;
94 bool m_ignoredExitCodesHasBeenSet =
false;
96 int m_restartAttemptPeriod{0};
97 bool m_restartAttemptPeriodHasBeenSet =
false;
void SetRestartAttemptPeriod(int value)
ContainerRestartPolicy & WithRestartAttemptPeriod(int value)
int GetRestartAttemptPeriod() const
ContainerRestartPolicy & AddIgnoredExitCodes(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()=default
ContainerRestartPolicy & WithIgnoredExitCodes(IgnoredExitCodesT &&value)
AWS_ECS_API ContainerRestartPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIgnoredExitCodes(IgnoredExitCodesT &&value)
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