AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterNodeSummary.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ClusterInstanceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sagemaker/model/ClusterInstanceStatusDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SAGEMAKER_API ClusterNodeSummary();
39 AWS_SAGEMAKER_API ClusterNodeSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetInstanceGroupName() const{ return m_instanceGroupName; }
49 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
50 inline void SetInstanceGroupName(const Aws::String& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = value; }
51 inline void SetInstanceGroupName(Aws::String&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::move(value); }
52 inline void SetInstanceGroupName(const char* value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName.assign(value); }
53 inline ClusterNodeSummary& WithInstanceGroupName(const Aws::String& value) { SetInstanceGroupName(value); return *this;}
54 inline ClusterNodeSummary& WithInstanceGroupName(Aws::String&& value) { SetInstanceGroupName(std::move(value)); return *this;}
55 inline ClusterNodeSummary& WithInstanceGroupName(const char* value) { SetInstanceGroupName(value); return *this;}
57
59
62 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
63 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
64 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
65 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
66 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
67 inline ClusterNodeSummary& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
68 inline ClusterNodeSummary& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
69 inline ClusterNodeSummary& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
71
73
76 inline const ClusterInstanceType& GetInstanceType() const{ return m_instanceType; }
77 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
78 inline void SetInstanceType(const ClusterInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
79 inline void SetInstanceType(ClusterInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
80 inline ClusterNodeSummary& WithInstanceType(const ClusterInstanceType& value) { SetInstanceType(value); return *this;}
81 inline ClusterNodeSummary& WithInstanceType(ClusterInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetLaunchTime() const{ return m_launchTime; }
89 inline bool LaunchTimeHasBeenSet() const { return m_launchTimeHasBeenSet; }
90 inline void SetLaunchTime(const Aws::Utils::DateTime& value) { m_launchTimeHasBeenSet = true; m_launchTime = value; }
91 inline void SetLaunchTime(Aws::Utils::DateTime&& value) { m_launchTimeHasBeenSet = true; m_launchTime = std::move(value); }
92 inline ClusterNodeSummary& WithLaunchTime(const Aws::Utils::DateTime& value) { SetLaunchTime(value); return *this;}
93 inline ClusterNodeSummary& WithLaunchTime(Aws::Utils::DateTime&& value) { SetLaunchTime(std::move(value)); return *this;}
95
97
100 inline const ClusterInstanceStatusDetails& GetInstanceStatus() const{ return m_instanceStatus; }
101 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
102 inline void SetInstanceStatus(const ClusterInstanceStatusDetails& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = value; }
103 inline void SetInstanceStatus(ClusterInstanceStatusDetails&& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = std::move(value); }
105 inline ClusterNodeSummary& WithInstanceStatus(ClusterInstanceStatusDetails&& value) { SetInstanceStatus(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_instanceGroupName;
110 bool m_instanceGroupNameHasBeenSet = false;
111
112 Aws::String m_instanceId;
113 bool m_instanceIdHasBeenSet = false;
114
115 ClusterInstanceType m_instanceType;
116 bool m_instanceTypeHasBeenSet = false;
117
118 Aws::Utils::DateTime m_launchTime;
119 bool m_launchTimeHasBeenSet = false;
120
121 ClusterInstanceStatusDetails m_instanceStatus;
122 bool m_instanceStatusHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace SageMaker
127} // namespace Aws
void SetInstanceStatus(ClusterInstanceStatusDetails &&value)
ClusterNodeSummary & WithInstanceGroupName(const char *value)
ClusterNodeSummary & WithLaunchTime(const Aws::Utils::DateTime &value)
ClusterNodeSummary & WithInstanceStatus(ClusterInstanceStatusDetails &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLaunchTime(const Aws::Utils::DateTime &value)
void SetLaunchTime(Aws::Utils::DateTime &&value)
ClusterNodeSummary & WithInstanceId(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
const ClusterInstanceType & GetInstanceType() const
const ClusterInstanceStatusDetails & GetInstanceStatus() const
void SetInstanceStatus(const ClusterInstanceStatusDetails &value)
const Aws::String & GetInstanceGroupName() const
ClusterNodeSummary & WithInstanceGroupName(const Aws::String &value)
ClusterNodeSummary & WithInstanceGroupName(Aws::String &&value)
AWS_SAGEMAKER_API ClusterNodeSummary(Aws::Utils::Json::JsonView jsonValue)
ClusterNodeSummary & WithLaunchTime(Aws::Utils::DateTime &&value)
void SetInstanceType(ClusterInstanceType &&value)
AWS_SAGEMAKER_API ClusterNodeSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterNodeSummary & WithInstanceStatus(const ClusterInstanceStatusDetails &value)
void SetInstanceType(const ClusterInstanceType &value)
const Aws::Utils::DateTime & GetLaunchTime() const
ClusterNodeSummary & WithInstanceType(const ClusterInstanceType &value)
ClusterNodeSummary & WithInstanceType(ClusterInstanceType &&value)
ClusterNodeSummary & WithInstanceId(const char *value)
ClusterNodeSummary & WithInstanceId(const Aws::String &value)
void SetInstanceGroupName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue