7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/VersionInfo.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/AgentUpdateStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ecs/model/ContainerInstanceHealthStatus.h>
14#include <aws/ecs/model/Resource.h>
15#include <aws/ecs/model/Attribute.h>
16#include <aws/ecs/model/Attachment.h>
17#include <aws/ecs/model/Tag.h>
61 inline void SetContainerInstanceArn(
const char* value) { m_containerInstanceArnHasBeenSet =
true; m_containerInstanceArn.assign(value); }
77 inline void SetEc2InstanceId(
const char* value) { m_ec2InstanceIdHasBeenSet =
true; m_ec2InstanceId.assign(value); }
91 inline void SetCapacityProviderName(
const char* value) { m_capacityProviderNameHasBeenSet =
true; m_capacityProviderName.assign(value); }
109 inline void SetVersion(
long long value) { m_versionHasBeenSet =
true; m_version = value; }
193 inline void SetStatus(
const char* value) { m_statusHasBeenSet =
true; m_status.assign(value); }
207 inline void SetStatusReason(
const char* value) { m_statusReasonHasBeenSet =
true; m_statusReason.assign(value); }
222 inline void SetAgentConnected(
bool value) { m_agentConnectedHasBeenSet =
true; m_agentConnected = value; }
233 inline void SetRunningTasksCount(
int value) { m_runningTasksCountHasBeenSet =
true; m_runningTasksCount = value; }
244 inline void SetPendingTasksCount(
int value) { m_pendingTasksCountHasBeenSet =
true; m_pendingTasksCount = value; }
349 bool m_containerInstanceArnHasBeenSet =
false;
352 bool m_ec2InstanceIdHasBeenSet =
false;
355 bool m_capacityProviderNameHasBeenSet =
false;
358 bool m_versionHasBeenSet =
false;
361 bool m_versionInfoHasBeenSet =
false;
364 bool m_remainingResourcesHasBeenSet =
false;
367 bool m_registeredResourcesHasBeenSet =
false;
370 bool m_statusHasBeenSet =
false;
373 bool m_statusReasonHasBeenSet =
false;
375 bool m_agentConnected;
376 bool m_agentConnectedHasBeenSet =
false;
378 int m_runningTasksCount;
379 bool m_runningTasksCountHasBeenSet =
false;
381 int m_pendingTasksCount;
382 bool m_pendingTasksCountHasBeenSet =
false;
385 bool m_agentUpdateStatusHasBeenSet =
false;
388 bool m_attributesHasBeenSet =
false;
391 bool m_registeredAtHasBeenSet =
false;
394 bool m_attachmentsHasBeenSet =
false;
397 bool m_tagsHasBeenSet =
false;
400 bool m_healthStatusHasBeenSet =
false;
const Aws::String & GetStatusReason() const
AWS_ECS_API ContainerInstance()
ContainerInstance & WithRegisteredAt(Aws::Utils::DateTime &&value)
const ContainerInstanceHealthStatus & GetHealthStatus() const
void SetAttributes(Aws::Vector< Attribute > &&value)
ContainerInstance & WithAgentUpdateStatus(AgentUpdateStatus &&value)
void SetRegisteredResources(Aws::Vector< Resource > &&value)
void SetStatus(const Aws::String &value)
ContainerInstance & AddAttributes(const Attribute &value)
ContainerInstance & WithEc2InstanceId(Aws::String &&value)
const Aws::Vector< Attachment > & GetAttachments() const
ContainerInstance & WithHealthStatus(ContainerInstanceHealthStatus &&value)
ContainerInstance & WithVersionInfo(VersionInfo &&value)
void SetCapacityProviderName(const Aws::String &value)
ContainerInstance & WithContainerInstanceArn(const Aws::String &value)
void SetContainerInstanceArn(const char *value)
ContainerInstance & WithRegisteredAt(const Aws::Utils::DateTime &value)
void SetStatusReason(Aws::String &&value)
void SetPendingTasksCount(int value)
bool ContainerInstanceArnHasBeenSet() const
void SetRemainingResources(Aws::Vector< Resource > &&value)
ContainerInstance & WithVersionInfo(const VersionInfo &value)
void SetStatus(const char *value)
ContainerInstance & WithAttachments(const Aws::Vector< Attachment > &value)
ContainerInstance & AddRegisteredResources(Resource &&value)
void SetAttributes(const Aws::Vector< Attribute > &value)
bool CapacityProviderNameHasBeenSet() const
void SetAgentUpdateStatus(AgentUpdateStatus &&value)
bool AgentUpdateStatusHasBeenSet() const
ContainerInstance & WithRegisteredResources(Aws::Vector< Resource > &&value)
const Aws::Vector< Resource > & GetRemainingResources() const
const Aws::String & GetEc2InstanceId() const
void SetEc2InstanceId(Aws::String &&value)
void SetContainerInstanceArn(Aws::String &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAgentUpdateStatus(const AgentUpdateStatus &value)
ContainerInstance & WithPendingTasksCount(int value)
bool StatusReasonHasBeenSet() const
void SetContainerInstanceArn(const Aws::String &value)
const Aws::String & GetContainerInstanceArn() const
const VersionInfo & GetVersionInfo() const
void SetAgentConnected(bool value)
void SetEc2InstanceId(const char *value)
void SetHealthStatus(ContainerInstanceHealthStatus &&value)
ContainerInstance & WithCapacityProviderName(const Aws::String &value)
ContainerInstance & WithContainerInstanceArn(const char *value)
bool RunningTasksCountHasBeenSet() const
void SetTags(Aws::Vector< Tag > &&value)
ContainerInstance & WithStatus(const Aws::String &value)
ContainerInstance & WithContainerInstanceArn(Aws::String &&value)
ContainerInstance & WithAttributes(Aws::Vector< Attribute > &&value)
ContainerInstance & AddAttachments(Attachment &&value)
bool Ec2InstanceIdHasBeenSet() const
ContainerInstance & WithEc2InstanceId(const Aws::String &value)
ContainerInstance & WithAttachments(Aws::Vector< Attachment > &&value)
bool AgentConnectedHasBeenSet() const
void SetCapacityProviderName(Aws::String &&value)
bool RegisteredAtHasBeenSet() const
ContainerInstance & WithRemainingResources(Aws::Vector< Resource > &&value)
void SetRegisteredAt(Aws::Utils::DateTime &&value)
bool AttributesHasBeenSet() const
void SetVersion(long long value)
ContainerInstance & AddTags(Tag &&value)
bool HealthStatusHasBeenSet() const
ContainerInstance & AddRemainingResources(Resource &&value)
bool AttachmentsHasBeenSet() const
void SetStatus(Aws::String &&value)
ContainerInstance & WithStatusReason(Aws::String &&value)
ContainerInstance & WithCapacityProviderName(Aws::String &&value)
ContainerInstance & WithStatus(Aws::String &&value)
ContainerInstance & WithStatusReason(const char *value)
void SetVersionInfo(const VersionInfo &value)
void SetStatusReason(const char *value)
bool StatusHasBeenSet() const
ContainerInstance & WithAgentUpdateStatus(const AgentUpdateStatus &value)
bool RegisteredResourcesHasBeenSet() const
void SetStatusReason(const Aws::String &value)
int GetRunningTasksCount() const
ContainerInstance & WithTags(Aws::Vector< Tag > &&value)
bool PendingTasksCountHasBeenSet() const
const AgentUpdateStatus & GetAgentUpdateStatus() const
ContainerInstance & WithCapacityProviderName(const char *value)
bool VersionHasBeenSet() const
ContainerInstance & WithHealthStatus(const ContainerInstanceHealthStatus &value)
ContainerInstance & WithEc2InstanceId(const char *value)
bool GetAgentConnected() const
ContainerInstance & AddRemainingResources(const Resource &value)
ContainerInstance & AddRegisteredResources(const Resource &value)
void SetRemainingResources(const Aws::Vector< Resource > &value)
const Aws::String & GetStatus() const
void SetTags(const Aws::Vector< Tag > &value)
ContainerInstance & WithRemainingResources(const Aws::Vector< Resource > &value)
void SetHealthStatus(const ContainerInstanceHealthStatus &value)
const Aws::String & GetCapacityProviderName() const
ContainerInstance & WithAttributes(const Aws::Vector< Attribute > &value)
ContainerInstance & WithStatus(const char *value)
int GetPendingTasksCount() const
ContainerInstance & WithVersion(long long value)
ContainerInstance & WithStatusReason(const Aws::String &value)
void SetEc2InstanceId(const Aws::String &value)
ContainerInstance & WithAgentConnected(bool value)
AWS_ECS_API ContainerInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetVersion() const
bool RemainingResourcesHasBeenSet() const
ContainerInstance & AddAttachments(const Attachment &value)
void SetRegisteredResources(const Aws::Vector< Resource > &value)
const Aws::Vector< Resource > & GetRegisteredResources() const
ContainerInstance & WithTags(const Aws::Vector< Tag > &value)
AWS_ECS_API ContainerInstance(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< Attribute > & GetAttributes() const
void SetAttachments(const Aws::Vector< Attachment > &value)
void SetRunningTasksCount(int value)
void SetVersionInfo(VersionInfo &&value)
ContainerInstance & AddTags(const Tag &value)
bool TagsHasBeenSet() const
ContainerInstance & WithRegisteredResources(const Aws::Vector< Resource > &value)
void SetCapacityProviderName(const char *value)
bool VersionInfoHasBeenSet() const
const Aws::Utils::DateTime & GetRegisteredAt() const
void SetAttachments(Aws::Vector< Attachment > &&value)
ContainerInstance & WithRunningTasksCount(int value)
void SetRegisteredAt(const Aws::Utils::DateTime &value)
ContainerInstance & AddAttributes(Attribute &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue