AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AddAssociationRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/AssociationEdgeType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SageMaker
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SAGEMAKER_API AddAssociationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AddAssociation"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
43 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
44 template<typename SourceArnT = Aws::String>
45 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
46 template<typename SourceArnT = Aws::String>
47 AddAssociationRequest& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
55 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
56 template<typename DestinationArnT = Aws::String>
57 void SetDestinationArn(DestinationArnT&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::forward<DestinationArnT>(value); }
58 template<typename DestinationArnT = Aws::String>
59 AddAssociationRequest& WithDestinationArn(DestinationArnT&& value) { SetDestinationArn(std::forward<DestinationArnT>(value)); return *this;}
61
63
76 inline AssociationEdgeType GetAssociationType() const { return m_associationType; }
77 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
78 inline void SetAssociationType(AssociationEdgeType value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
81 private:
82
83 Aws::String m_sourceArn;
84 bool m_sourceArnHasBeenSet = false;
85
86 Aws::String m_destinationArn;
87 bool m_destinationArnHasBeenSet = false;
88
90 bool m_associationTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SageMaker
95} // 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