AWS SDK for C++  1.9.155
AWS SDK for C++
UpdateContainerInstancesStateResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <aws/ecs/model/Failure.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ECS
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<ContainerInstance>& GetContainerInstances() const{ return m_containerInstances; }
41 
45  inline void SetContainerInstances(const Aws::Vector<ContainerInstance>& value) { m_containerInstances = value; }
46 
50  inline void SetContainerInstances(Aws::Vector<ContainerInstance>&& value) { m_containerInstances = std::move(value); }
51 
55  inline UpdateContainerInstancesStateResult& WithContainerInstances(const Aws::Vector<ContainerInstance>& value) { SetContainerInstances(value); return *this;}
56 
60  inline UpdateContainerInstancesStateResult& WithContainerInstances(Aws::Vector<ContainerInstance>&& value) { SetContainerInstances(std::move(value)); return *this;}
61 
65  inline UpdateContainerInstancesStateResult& AddContainerInstances(const ContainerInstance& value) { m_containerInstances.push_back(value); return *this; }
66 
70  inline UpdateContainerInstancesStateResult& AddContainerInstances(ContainerInstance&& value) { m_containerInstances.push_back(std::move(value)); return *this; }
71 
72 
76  inline const Aws::Vector<Failure>& GetFailures() const{ return m_failures; }
77 
81  inline void SetFailures(const Aws::Vector<Failure>& value) { m_failures = value; }
82 
86  inline void SetFailures(Aws::Vector<Failure>&& value) { m_failures = std::move(value); }
87 
91  inline UpdateContainerInstancesStateResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
92 
96  inline UpdateContainerInstancesStateResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
97 
101  inline UpdateContainerInstancesStateResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
102 
106  inline UpdateContainerInstancesStateResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
107 
108  private:
109 
110  Aws::Vector<ContainerInstance> m_containerInstances;
111 
112  Aws::Vector<Failure> m_failures;
113  };
114 
115 } // namespace Model
116 } // namespace ECS
117 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::UpdateContainerInstancesStateResult::SetContainerInstances
void SetContainerInstances(Aws::Vector< ContainerInstance > &&value)
Definition: UpdateContainerInstancesStateResult.h:50
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::UpdateContainerInstancesStateResult::UpdateContainerInstancesStateResult
UpdateContainerInstancesStateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::UpdateContainerInstancesStateResult::SetFailures
void SetFailures(const Aws::Vector< Failure > &value)
Definition: UpdateContainerInstancesStateResult.h:81
Aws::ECS::Model::UpdateContainerInstancesStateResult::GetFailures
const Aws::Vector< Failure > & GetFailures() const
Definition: UpdateContainerInstancesStateResult.h:76
Aws::ECS::Model::UpdateContainerInstancesStateResult::operator=
UpdateContainerInstancesStateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::UpdateContainerInstancesStateResult::WithContainerInstances
UpdateContainerInstancesStateResult & WithContainerInstances(const Aws::Vector< ContainerInstance > &value)
Definition: UpdateContainerInstancesStateResult.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::UpdateContainerInstancesStateResult::GetContainerInstances
const Aws::Vector< ContainerInstance > & GetContainerInstances() const
Definition: UpdateContainerInstancesStateResult.h:40
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::UpdateContainerInstancesStateResult::SetContainerInstances
void SetContainerInstances(const Aws::Vector< ContainerInstance > &value)
Definition: UpdateContainerInstancesStateResult.h:45
Aws::ECS::Model::UpdateContainerInstancesStateResult
Definition: UpdateContainerInstancesStateResult.h:30
Aws::ECS::Model::UpdateContainerInstancesStateResult::WithContainerInstances
UpdateContainerInstancesStateResult & WithContainerInstances(Aws::Vector< ContainerInstance > &&value)
Definition: UpdateContainerInstancesStateResult.h:60
Aws::ECS::Model::UpdateContainerInstancesStateResult::AddContainerInstances
UpdateContainerInstancesStateResult & AddContainerInstances(ContainerInstance &&value)
Definition: UpdateContainerInstancesStateResult.h:70
Failure.h
Aws::ECS::Model::UpdateContainerInstancesStateResult::WithFailures
UpdateContainerInstancesStateResult & WithFailures(const Aws::Vector< Failure > &value)
Definition: UpdateContainerInstancesStateResult.h:91
ContainerInstance.h
Aws::ECS::Model::UpdateContainerInstancesStateResult::SetFailures
void SetFailures(Aws::Vector< Failure > &&value)
Definition: UpdateContainerInstancesStateResult.h:86
Aws::ECS::Model::UpdateContainerInstancesStateResult::UpdateContainerInstancesStateResult
UpdateContainerInstancesStateResult()
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Failure
Definition: Failure.h:35
Aws::ECS::Model::UpdateContainerInstancesStateResult::AddFailures
UpdateContainerInstancesStateResult & AddFailures(const Failure &value)
Definition: UpdateContainerInstancesStateResult.h:101
Aws::ECS::Model::UpdateContainerInstancesStateResult::AddContainerInstances
UpdateContainerInstancesStateResult & AddContainerInstances(const ContainerInstance &value)
Definition: UpdateContainerInstancesStateResult.h:65
Aws::ECS::Model::UpdateContainerInstancesStateResult::WithFailures
UpdateContainerInstancesStateResult & WithFailures(Aws::Vector< Failure > &&value)
Definition: UpdateContainerInstancesStateResult.h:96
Aws::ECS::Model::ContainerInstance
Definition: ContainerInstance.h:42
ECS_EXPORTS.h
Aws::ECS::Model::UpdateContainerInstancesStateResult::AddFailures
UpdateContainerInstancesStateResult & AddFailures(Failure &&value)
Definition: UpdateContainerInstancesStateResult.h:106