AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
CapacityReservation.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/CapacityReservationType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API CapacityReservation() = default;
37 AWS_SAGEMAKER_API CapacityReservation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template<typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
50 template<typename ArnT = Aws::String>
51 CapacityReservation& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
53
55
60 inline CapacityReservationType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(CapacityReservationType value) { m_typeHasBeenSet = true; m_type = value; }
63 inline CapacityReservation& WithType(CapacityReservationType value) { SetType(value); return *this;}
65 private:
66
67 Aws::String m_arn;
68 bool m_arnHasBeenSet = false;
69
71 bool m_typeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SageMaker
76} // namespace Aws
AWS_SAGEMAKER_API CapacityReservation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(CapacityReservationType value)
AWS_SAGEMAKER_API CapacityReservation(Aws::Utils::Json::JsonView jsonValue)
CapacityReservationType GetType() const
CapacityReservation & WithType(CapacityReservationType value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
CapacityReservation & WithArn(ArnT &&value)
AWS_SAGEMAKER_API CapacityReservation()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue