AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttemptEcsTaskDetails.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/batch/model/AttemptTaskContainerDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BATCH_API AttemptEcsTaskDetails();
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetContainerInstanceArn() const{ return m_containerInstanceArn; }
49 inline bool ContainerInstanceArnHasBeenSet() const { return m_containerInstanceArnHasBeenSet; }
50 inline void SetContainerInstanceArn(const Aws::String& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = value; }
51 inline void SetContainerInstanceArn(Aws::String&& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = std::move(value); }
52 inline void SetContainerInstanceArn(const char* value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn.assign(value); }
54 inline AttemptEcsTaskDetails& WithContainerInstanceArn(Aws::String&& value) { SetContainerInstanceArn(std::move(value)); return *this;}
55 inline AttemptEcsTaskDetails& WithContainerInstanceArn(const char* value) { SetContainerInstanceArn(value); return *this;}
57
59
62 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
63 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
64 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
65 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
66 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
67 inline AttemptEcsTaskDetails& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
68 inline AttemptEcsTaskDetails& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
69 inline AttemptEcsTaskDetails& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
71
73
77 inline const Aws::Vector<AttemptTaskContainerDetails>& GetContainers() const{ return m_containers; }
78 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
79 inline void SetContainers(const Aws::Vector<AttemptTaskContainerDetails>& value) { m_containersHasBeenSet = true; m_containers = value; }
80 inline void SetContainers(Aws::Vector<AttemptTaskContainerDetails>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
83 inline AttemptEcsTaskDetails& AddContainers(const AttemptTaskContainerDetails& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
84 inline AttemptEcsTaskDetails& AddContainers(AttemptTaskContainerDetails&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_containerInstanceArn;
89 bool m_containerInstanceArnHasBeenSet = false;
90
91 Aws::String m_taskArn;
92 bool m_taskArnHasBeenSet = false;
93
95 bool m_containersHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Batch
100} // namespace Aws
AttemptEcsTaskDetails & WithContainers(const Aws::Vector< AttemptTaskContainerDetails > &value)
AttemptEcsTaskDetails & WithTaskArn(const Aws::String &value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API AttemptEcsTaskDetails(Aws::Utils::Json::JsonView jsonValue)
AttemptEcsTaskDetails & AddContainers(const AttemptTaskContainerDetails &value)
AttemptEcsTaskDetails & WithContainerInstanceArn(const Aws::String &value)
AttemptEcsTaskDetails & WithContainerInstanceArn(Aws::String &&value)
void SetContainers(const Aws::Vector< AttemptTaskContainerDetails > &value)
const Aws::String & GetContainerInstanceArn() const
const Aws::Vector< AttemptTaskContainerDetails > & GetContainers() const
AttemptEcsTaskDetails & WithContainerInstanceArn(const char *value)
void SetTaskArn(const Aws::String &value)
void SetContainers(Aws::Vector< AttemptTaskContainerDetails > &&value)
AttemptEcsTaskDetails & WithContainers(Aws::Vector< AttemptTaskContainerDetails > &&value)
AttemptEcsTaskDetails & WithTaskArn(const char *value)
void SetContainerInstanceArn(const Aws::String &value)
AttemptEcsTaskDetails & AddContainers(AttemptTaskContainerDetails &&value)
AWS_BATCH_API AttemptEcsTaskDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AttemptEcsTaskDetails & WithTaskArn(Aws::String &&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