AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AddAssociationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/AssociationEdgeType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SageMaker {
16namespace Model {
17
21 public:
22 AWS_SAGEMAKER_API AddAssociationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AddAssociation"; }
29
30 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
39 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
40 template <typename SourceArnT = Aws::String>
41 void SetSourceArn(SourceArnT&& value) {
42 m_sourceArnHasBeenSet = true;
43 m_sourceArn = std::forward<SourceArnT>(value);
44 }
45 template <typename SourceArnT = Aws::String>
46 AddAssociationRequest& WithSourceArn(SourceArnT&& value) {
47 SetSourceArn(std::forward<SourceArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
57 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
58 template <typename DestinationArnT = Aws::String>
59 void SetDestinationArn(DestinationArnT&& value) {
60 m_destinationArnHasBeenSet = true;
61 m_destinationArn = std::forward<DestinationArnT>(value);
62 }
63 template <typename DestinationArnT = Aws::String>
64 AddAssociationRequest& WithDestinationArn(DestinationArnT&& value) {
65 SetDestinationArn(std::forward<DestinationArnT>(value));
66 return *this;
67 }
69
71
84 inline AssociationEdgeType GetAssociationType() const { return m_associationType; }
85 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
87 m_associationTypeHasBeenSet = true;
88 m_associationType = value;
89 }
91 SetAssociationType(value);
92 return *this;
93 }
95 private:
96 Aws::String m_sourceArn;
97
98 Aws::String m_destinationArn;
99
101 bool m_sourceArnHasBeenSet = false;
102 bool m_destinationArnHasBeenSet = false;
103 bool m_associationTypeHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace SageMaker
108} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
void SetAssociationType(AssociationEdgeType value)
AddAssociationRequest & WithDestinationArn(DestinationArnT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API AddAssociationRequest()=default
AddAssociationRequest & WithSourceArn(SourceArnT &&value)
AddAssociationRequest & WithAssociationType(AssociationEdgeType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String