AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Edge.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/AssociationEdgeType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
28class Edge {
29 public:
30 AWS_SAGEMAKER_API Edge() = default;
31 AWS_SAGEMAKER_API Edge(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKER_API Edge& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
41 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
42 template <typename SourceArnT = Aws::String>
43 void SetSourceArn(SourceArnT&& value) {
44 m_sourceArnHasBeenSet = true;
45 m_sourceArn = std::forward<SourceArnT>(value);
46 }
47 template <typename SourceArnT = Aws::String>
48 Edge& WithSourceArn(SourceArnT&& value) {
49 SetSourceArn(std::forward<SourceArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
60 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
61 template <typename DestinationArnT = Aws::String>
62 void SetDestinationArn(DestinationArnT&& value) {
63 m_destinationArnHasBeenSet = true;
64 m_destinationArn = std::forward<DestinationArnT>(value);
65 }
66 template <typename DestinationArnT = Aws::String>
67 Edge& WithDestinationArn(DestinationArnT&& value) {
68 SetDestinationArn(std::forward<DestinationArnT>(value));
69 return *this;
70 }
72
74
79 inline AssociationEdgeType GetAssociationType() const { return m_associationType; }
80 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
82 m_associationTypeHasBeenSet = true;
83 m_associationType = value;
84 }
86 SetAssociationType(value);
87 return *this;
88 }
90 private:
91 Aws::String m_sourceArn;
92
93 Aws::String m_destinationArn;
94
96 bool m_sourceArnHasBeenSet = false;
97 bool m_destinationArnHasBeenSet = false;
98 bool m_associationTypeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SageMaker
103} // namespace Aws
bool SourceArnHasBeenSet() const
Definition Edge.h:41
AWS_SAGEMAKER_API Edge & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Edge()=default
void SetDestinationArn(DestinationArnT &&value)
Definition Edge.h:62
Edge & WithDestinationArn(DestinationArnT &&value)
Definition Edge.h:67
bool AssociationTypeHasBeenSet() const
Definition Edge.h:80
AssociationEdgeType GetAssociationType() const
Definition Edge.h:79
AWS_SAGEMAKER_API Edge(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Edge & WithAssociationType(AssociationEdgeType value)
Definition Edge.h:85
const Aws::String & GetSourceArn() const
Definition Edge.h:40
const Aws::String & GetDestinationArn() const
Definition Edge.h:59
void SetSourceArn(SourceArnT &&value)
Definition Edge.h:43
void SetAssociationType(AssociationEdgeType value)
Definition Edge.h:81
bool DestinationArnHasBeenSet() const
Definition Edge.h:60
Edge & WithSourceArn(SourceArnT &&value)
Definition Edge.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue