AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NodeDetails.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Batch {
17namespace Model {
18
26 public:
27 AWS_BATCH_API NodeDetails() = default;
28 AWS_BATCH_API NodeDetails(Aws::Utils::Json::JsonView jsonValue);
30 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
38 inline int GetNodeIndex() const { return m_nodeIndex; }
39 inline bool NodeIndexHasBeenSet() const { return m_nodeIndexHasBeenSet; }
40 inline void SetNodeIndex(int value) {
41 m_nodeIndexHasBeenSet = true;
42 m_nodeIndex = value;
43 }
44 inline NodeDetails& WithNodeIndex(int value) {
45 SetNodeIndex(value);
46 return *this;
47 }
49
51
55 inline bool GetIsMainNode() const { return m_isMainNode; }
56 inline bool IsMainNodeHasBeenSet() const { return m_isMainNodeHasBeenSet; }
57 inline void SetIsMainNode(bool value) {
58 m_isMainNodeHasBeenSet = true;
59 m_isMainNode = value;
60 }
61 inline NodeDetails& WithIsMainNode(bool value) {
62 SetIsMainNode(value);
63 return *this;
64 }
66 private:
67 int m_nodeIndex{0};
68
69 bool m_isMainNode{false};
70 bool m_nodeIndexHasBeenSet = false;
71 bool m_isMainNodeHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace Batch
76} // namespace Aws
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
NodeDetails & WithIsMainNode(bool value)
Definition NodeDetails.h:61
void SetIsMainNode(bool value)
Definition NodeDetails.h:57
AWS_BATCH_API NodeDetails(Aws::Utils::Json::JsonView jsonValue)
NodeDetails & WithNodeIndex(int value)
Definition NodeDetails.h:44
AWS_BATCH_API NodeDetails()=default
AWS_BATCH_API NodeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue