AWS SDK for C++  1.9.154
AWS SDK for C++
AddAssociationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SageMaker
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
42 
46  inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
47 
51  inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
52 
56  inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
57 
61  inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
62 
66  inline AddAssociationRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
67 
71  inline AddAssociationRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
72 
76  inline AddAssociationRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
77 
78 
82  inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
83 
87  inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
88 
92  inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
93 
97  inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
98 
102  inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
103 
107  inline AddAssociationRequest& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
108 
112  inline AddAssociationRequest& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
113 
117  inline AddAssociationRequest& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
118 
119 
133  inline const AssociationEdgeType& GetAssociationType() const{ return m_associationType; }
134 
148  inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
149 
163  inline void SetAssociationType(const AssociationEdgeType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
164 
178  inline void SetAssociationType(AssociationEdgeType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); }
179 
193  inline AddAssociationRequest& WithAssociationType(const AssociationEdgeType& value) { SetAssociationType(value); return *this;}
194 
208  inline AddAssociationRequest& WithAssociationType(AssociationEdgeType&& value) { SetAssociationType(std::move(value)); return *this;}
209 
210  private:
211 
212  Aws::String m_sourceArn;
213  bool m_sourceArnHasBeenSet;
214 
215  Aws::String m_destinationArn;
216  bool m_destinationArnHasBeenSet;
217 
218  AssociationEdgeType m_associationType;
219  bool m_associationTypeHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace SageMaker
224 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::AddAssociationRequest::SetDestinationArn
void SetDestinationArn(const char *value)
Definition: AddAssociationRequest.h:102
Aws::SageMaker::Model::AddAssociationRequest::WithDestinationArn
AddAssociationRequest & WithDestinationArn(const Aws::String &value)
Definition: AddAssociationRequest.h:107
Aws::SageMaker::Model::AddAssociationRequest::WithDestinationArn
AddAssociationRequest & WithDestinationArn(Aws::String &&value)
Definition: AddAssociationRequest.h:112
Aws::SageMaker::Model::AddAssociationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::AddAssociationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::AddAssociationRequest::SetDestinationArn
void SetDestinationArn(Aws::String &&value)
Definition: AddAssociationRequest.h:97
Aws::SageMaker::Model::AddAssociationRequest::AddAssociationRequest
AddAssociationRequest()
Aws::SageMaker::Model::AddAssociationRequest::AssociationTypeHasBeenSet
bool AssociationTypeHasBeenSet() const
Definition: AddAssociationRequest.h:148
Aws::SageMaker::Model::AddAssociationRequest::WithSourceArn
AddAssociationRequest & WithSourceArn(const Aws::String &value)
Definition: AddAssociationRequest.h:66
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::AddAssociationRequest::SetSourceArn
void SetSourceArn(const char *value)
Definition: AddAssociationRequest.h:61
Aws::SageMaker::Model::AddAssociationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddAssociationRequest.h:31
Aws::SageMaker::Model::AddAssociationRequest::GetSourceArn
const Aws::String & GetSourceArn() const
Definition: AddAssociationRequest.h:41
AssociationEdgeType.h
Aws::SageMaker::Model::AddAssociationRequest::DestinationArnHasBeenSet
bool DestinationArnHasBeenSet() const
Definition: AddAssociationRequest.h:87
Aws::SageMaker::Model::AddAssociationRequest::SetAssociationType
void SetAssociationType(const AssociationEdgeType &value)
Definition: AddAssociationRequest.h:163
AWSString.h
Aws::SageMaker::Model::AddAssociationRequest::SetDestinationArn
void SetDestinationArn(const Aws::String &value)
Definition: AddAssociationRequest.h:92
Aws::SageMaker::Model::AddAssociationRequest::WithDestinationArn
AddAssociationRequest & WithDestinationArn(const char *value)
Definition: AddAssociationRequest.h:117
Aws::SageMaker::Model::AddAssociationRequest::GetDestinationArn
const Aws::String & GetDestinationArn() const
Definition: AddAssociationRequest.h:82
Aws::SageMaker::Model::AddAssociationRequest::SetAssociationType
void SetAssociationType(AssociationEdgeType &&value)
Definition: AddAssociationRequest.h:178
Aws::SageMaker::Model::AddAssociationRequest::WithAssociationType
AddAssociationRequest & WithAssociationType(AssociationEdgeType &&value)
Definition: AddAssociationRequest.h:208
Aws::SageMaker::Model::AddAssociationRequest::SetSourceArn
void SetSourceArn(Aws::String &&value)
Definition: AddAssociationRequest.h:56
Aws::SageMaker::Model::AssociationEdgeType
AssociationEdgeType
Definition: AssociationEdgeType.h:17
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::AddAssociationRequest::WithSourceArn
AddAssociationRequest & WithSourceArn(const char *value)
Definition: AddAssociationRequest.h:76
Aws::SageMaker::Model::AddAssociationRequest::SetSourceArn
void SetSourceArn(const Aws::String &value)
Definition: AddAssociationRequest.h:51
Aws::SageMaker::Model::AddAssociationRequest::WithSourceArn
AddAssociationRequest & WithSourceArn(Aws::String &&value)
Definition: AddAssociationRequest.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::AddAssociationRequest::SourceArnHasBeenSet
bool SourceArnHasBeenSet() const
Definition: AddAssociationRequest.h:46
Aws::SageMaker::Model::AddAssociationRequest
Definition: AddAssociationRequest.h:23
Aws::SageMaker::Model::AddAssociationRequest::GetAssociationType
const AssociationEdgeType & GetAssociationType() const
Definition: AddAssociationRequest.h:133
Aws::SageMaker::Model::AddAssociationRequest::WithAssociationType
AddAssociationRequest & WithAssociationType(const AssociationEdgeType &value)
Definition: AddAssociationRequest.h:193