AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
InstanceMetadata.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/AdditionalEnis.h>
10#include <aws/sagemaker/model/CapacityReservation.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 SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API InstanceMetadata() = default;
38 AWS_SAGEMAKER_API InstanceMetadata(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetCustomerEni() const { return m_customerEni; }
49 inline bool CustomerEniHasBeenSet() const { return m_customerEniHasBeenSet; }
50 template<typename CustomerEniT = Aws::String>
51 void SetCustomerEni(CustomerEniT&& value) { m_customerEniHasBeenSet = true; m_customerEni = std::forward<CustomerEniT>(value); }
52 template<typename CustomerEniT = Aws::String>
53 InstanceMetadata& WithCustomerEni(CustomerEniT&& value) { SetCustomerEni(std::forward<CustomerEniT>(value)); return *this;}
55
57
61 inline const AdditionalEnis& GetAdditionalEnis() const { return m_additionalEnis; }
62 inline bool AdditionalEnisHasBeenSet() const { return m_additionalEnisHasBeenSet; }
63 template<typename AdditionalEnisT = AdditionalEnis>
64 void SetAdditionalEnis(AdditionalEnisT&& value) { m_additionalEnisHasBeenSet = true; m_additionalEnis = std::forward<AdditionalEnisT>(value); }
65 template<typename AdditionalEnisT = AdditionalEnis>
66 InstanceMetadata& WithAdditionalEnis(AdditionalEnisT&& value) { SetAdditionalEnis(std::forward<AdditionalEnisT>(value)); return *this;}
68
70
73 inline const CapacityReservation& GetCapacityReservation() const { return m_capacityReservation; }
74 inline bool CapacityReservationHasBeenSet() const { return m_capacityReservationHasBeenSet; }
75 template<typename CapacityReservationT = CapacityReservation>
76 void SetCapacityReservation(CapacityReservationT&& value) { m_capacityReservationHasBeenSet = true; m_capacityReservation = std::forward<CapacityReservationT>(value); }
77 template<typename CapacityReservationT = CapacityReservation>
78 InstanceMetadata& WithCapacityReservation(CapacityReservationT&& value) { SetCapacityReservation(std::forward<CapacityReservationT>(value)); return *this;}
80
82
86 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
87 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
88 template<typename FailureMessageT = Aws::String>
89 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::forward<FailureMessageT>(value); }
90 template<typename FailureMessageT = Aws::String>
91 InstanceMetadata& WithFailureMessage(FailureMessageT&& value) { SetFailureMessage(std::forward<FailureMessageT>(value)); return *this;}
93
95
98 inline const Aws::String& GetLcsExecutionState() const { return m_lcsExecutionState; }
99 inline bool LcsExecutionStateHasBeenSet() const { return m_lcsExecutionStateHasBeenSet; }
100 template<typename LcsExecutionStateT = Aws::String>
101 void SetLcsExecutionState(LcsExecutionStateT&& value) { m_lcsExecutionStateHasBeenSet = true; m_lcsExecutionState = std::forward<LcsExecutionStateT>(value); }
102 template<typename LcsExecutionStateT = Aws::String>
103 InstanceMetadata& WithLcsExecutionState(LcsExecutionStateT&& value) { SetLcsExecutionState(std::forward<LcsExecutionStateT>(value)); return *this;}
105
107
111 inline const Aws::String& GetNodeLogicalId() const { return m_nodeLogicalId; }
112 inline bool NodeLogicalIdHasBeenSet() const { return m_nodeLogicalIdHasBeenSet; }
113 template<typename NodeLogicalIdT = Aws::String>
114 void SetNodeLogicalId(NodeLogicalIdT&& value) { m_nodeLogicalIdHasBeenSet = true; m_nodeLogicalId = std::forward<NodeLogicalIdT>(value); }
115 template<typename NodeLogicalIdT = Aws::String>
116 InstanceMetadata& WithNodeLogicalId(NodeLogicalIdT&& value) { SetNodeLogicalId(std::forward<NodeLogicalIdT>(value)); return *this;}
118 private:
119
120 Aws::String m_customerEni;
121 bool m_customerEniHasBeenSet = false;
122
123 AdditionalEnis m_additionalEnis;
124 bool m_additionalEnisHasBeenSet = false;
125
126 CapacityReservation m_capacityReservation;
127 bool m_capacityReservationHasBeenSet = false;
128
129 Aws::String m_failureMessage;
130 bool m_failureMessageHasBeenSet = false;
131
132 Aws::String m_lcsExecutionState;
133 bool m_lcsExecutionStateHasBeenSet = false;
134
135 Aws::String m_nodeLogicalId;
136 bool m_nodeLogicalIdHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace SageMaker
141} // namespace Aws
const CapacityReservation & GetCapacityReservation() const
const Aws::String & GetFailureMessage() const
InstanceMetadata & WithAdditionalEnis(AdditionalEnisT &&value)
void SetAdditionalEnis(AdditionalEnisT &&value)
InstanceMetadata & WithCapacityReservation(CapacityReservationT &&value)
AWS_SAGEMAKER_API InstanceMetadata()=default
AWS_SAGEMAKER_API InstanceMetadata(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCustomerEni() const
const AdditionalEnis & GetAdditionalEnis() const
InstanceMetadata & WithFailureMessage(FailureMessageT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceMetadata & WithCustomerEni(CustomerEniT &&value)
const Aws::String & GetLcsExecutionState() const
InstanceMetadata & WithLcsExecutionState(LcsExecutionStateT &&value)
void SetCustomerEni(CustomerEniT &&value)
const Aws::String & GetNodeLogicalId() const
InstanceMetadata & WithNodeLogicalId(NodeLogicalIdT &&value)
void SetCapacityReservation(CapacityReservationT &&value)
AWS_SAGEMAKER_API InstanceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLcsExecutionState(LcsExecutionStateT &&value)
void SetFailureMessage(FailureMessageT &&value)
void SetNodeLogicalId(NodeLogicalIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue