/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents a change in state for a container.See
* Also:
AWS
* API Reference
The name of the container.
*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *The name of the container.
*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *The name of the container.
*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *The name of the container.
*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *The name of the container.
*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *The name of the container.
*/ inline ContainerStateChange& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *The name of the container.
*/ inline ContainerStateChange& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *The name of the container.
*/ inline ContainerStateChange& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *The container image SHA 256 digest.
*/ inline const Aws::String& GetImageDigest() const{ return m_imageDigest; } /** *The container image SHA 256 digest.
*/ inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; } /** *The container image SHA 256 digest.
*/ inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; } /** *The container image SHA 256 digest.
*/ inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); } /** *The container image SHA 256 digest.
*/ inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); } /** *The container image SHA 256 digest.
*/ inline ContainerStateChange& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;} /** *The container image SHA 256 digest.
*/ inline ContainerStateChange& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;} /** *The container image SHA 256 digest.
*/ inline ContainerStateChange& WithImageDigest(const char* value) { SetImageDigest(value); return *this;} /** *The ID of the Docker container.
*/ inline const Aws::String& GetRuntimeId() const{ return m_runtimeId; } /** *The ID of the Docker container.
*/ inline bool RuntimeIdHasBeenSet() const { return m_runtimeIdHasBeenSet; } /** *The ID of the Docker container.
*/ inline void SetRuntimeId(const Aws::String& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = value; } /** *The ID of the Docker container.
*/ inline void SetRuntimeId(Aws::String&& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = std::move(value); } /** *The ID of the Docker container.
*/ inline void SetRuntimeId(const char* value) { m_runtimeIdHasBeenSet = true; m_runtimeId.assign(value); } /** *The ID of the Docker container.
*/ inline ContainerStateChange& WithRuntimeId(const Aws::String& value) { SetRuntimeId(value); return *this;} /** *The ID of the Docker container.
*/ inline ContainerStateChange& WithRuntimeId(Aws::String&& value) { SetRuntimeId(std::move(value)); return *this;} /** *The ID of the Docker container.
*/ inline ContainerStateChange& WithRuntimeId(const char* value) { SetRuntimeId(value); return *this;} /** *The exit code for the container, if the state change is a result of the * container exiting.
*/ inline int GetExitCode() const{ return m_exitCode; } /** *The exit code for the container, if the state change is a result of the * container exiting.
*/ inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; } /** *The exit code for the container, if the state change is a result of the * container exiting.
*/ inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; } /** *The exit code for the container, if the state change is a result of the * container exiting.
*/ inline ContainerStateChange& WithExitCode(int value) { SetExitCode(value); return *this;} /** *Any network bindings that are associated with the container.
*/ inline const Aws::VectorAny network bindings that are associated with the container.
*/ inline bool NetworkBindingsHasBeenSet() const { return m_networkBindingsHasBeenSet; } /** *Any network bindings that are associated with the container.
*/ inline void SetNetworkBindings(const Aws::VectorAny network bindings that are associated with the container.
*/ inline void SetNetworkBindings(Aws::VectorAny network bindings that are associated with the container.
*/ inline ContainerStateChange& WithNetworkBindings(const Aws::VectorAny network bindings that are associated with the container.
*/ inline ContainerStateChange& WithNetworkBindings(Aws::VectorAny network bindings that are associated with the container.
*/ inline ContainerStateChange& AddNetworkBindings(const NetworkBinding& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(value); return *this; } /** *Any network bindings that are associated with the container.
*/ inline ContainerStateChange& AddNetworkBindings(NetworkBinding&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(std::move(value)); return *this; } /** *The reason for the state change.
*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *The reason for the state change.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *The reason for the state change.
*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *The reason for the state change.
*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *The reason for the state change.
*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *The reason for the state change.
*/ inline ContainerStateChange& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *The reason for the state change.
*/ inline ContainerStateChange& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *The reason for the state change.
*/ inline ContainerStateChange& WithReason(const char* value) { SetReason(value); return *this;} /** *The status of the container.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *The status of the container.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the container.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the container.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the container.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *The status of the container.
*/ inline ContainerStateChange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *The status of the container.
*/ inline ContainerStateChange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *The status of the container.
*/ inline ContainerStateChange& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_containerName; bool m_containerNameHasBeenSet = false; Aws::String m_imageDigest; bool m_imageDigestHasBeenSet = false; Aws::String m_runtimeId; bool m_runtimeIdHasBeenSet = false; int m_exitCode; bool m_exitCodeHasBeenSet = false; Aws::Vector