AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
45 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
46 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
47 inline AddAssociationRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
48 inline AddAssociationRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
49 inline AddAssociationRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
51
53
56 inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
57 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
58 inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
59 inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
60 inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
61 inline AddAssociationRequest& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
62 inline AddAssociationRequest& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
63 inline AddAssociationRequest& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
65
67
80 inline const AssociationEdgeType& GetAssociationType() const{ return m_associationType; }
81 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
82 inline void SetAssociationType(const AssociationEdgeType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
83 inline void SetAssociationType(AssociationEdgeType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); }
85 inline AddAssociationRequest& WithAssociationType(AssociationEdgeType&& value) { SetAssociationType(std::move(value)); return *this;}
87 private:
88
89 Aws::String m_sourceArn;
90 bool m_sourceArnHasBeenSet = false;
91
92 Aws::String m_destinationArn;
93 bool m_destinationArnHasBeenSet = false;
94
95 AssociationEdgeType m_associationType;
96 bool m_associationTypeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace SageMaker
101} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddAssociationRequest & WithAssociationType(AssociationEdgeType &&value)
virtual const char * GetServiceRequestName() const override
AddAssociationRequest & WithSourceArn(const char *value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AddAssociationRequest & WithDestinationArn(Aws::String &&value)
AddAssociationRequest & WithDestinationArn(const char *value)
AddAssociationRequest & WithDestinationArn(const Aws::String &value)
const AssociationEdgeType & GetAssociationType() const
AddAssociationRequest & WithAssociationType(const AssociationEdgeType &value)
void SetAssociationType(const AssociationEdgeType &value)
AddAssociationRequest & WithSourceArn(Aws::String &&value)
AddAssociationRequest & WithSourceArn(const Aws::String &value)
void SetAssociationType(AssociationEdgeType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String