7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ecs/ECS_EXPORTS.h>
49 m_enabledHasBeenSet =
true;
66 template <
typename IgnoredExitCodesT = Aws::Vector<
int>>
68 m_ignoredExitCodesHasBeenSet =
true;
69 m_ignoredExitCodes = std::forward<IgnoredExitCodesT>(value);
71 template <
typename IgnoredExitCodesT = Aws::Vector<
int>>
77 m_ignoredExitCodesHasBeenSet =
true;
78 m_ignoredExitCodes.push_back(value);
96 m_restartAttemptPeriodHasBeenSet =
true;
97 m_restartAttemptPeriod = value;
105 bool m_enabled{
false};
109 int m_restartAttemptPeriod{0};
110 bool m_enabledHasBeenSet =
false;
111 bool m_ignoredExitCodesHasBeenSet =
false;
112 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