AWS SDK for C++

AWS SDK for C++ Version 1.11.821

Loading...
Searching...
No Matches
SampleRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemakerjobruntime/SagemakerJobRuntimeRequest.h>
10#include <aws/sagemakerjobruntime/SagemakerJobRuntime_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SagemakerJobRuntime {
16namespace Model {
17
21 public:
22 AWS_SAGEMAKERJOBRUNTIME_API SampleRequest() = 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 "Sample"; }
29
30 AWS_SAGEMAKERJOBRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
31
33
37 inline const Aws::String& GetJobArn() const { return m_jobArn; }
38 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
39 template <typename JobArnT = Aws::String>
40 void SetJobArn(JobArnT&& value) {
41 m_jobArnHasBeenSet = true;
42 m_jobArn = std::forward<JobArnT>(value);
43 }
44 template <typename JobArnT = Aws::String>
45 SampleRequest& WithJobArn(JobArnT&& value) {
46 SetJobArn(std::forward<JobArnT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetTrajectoryId() const { return m_trajectoryId; }
57 inline bool TrajectoryIdHasBeenSet() const { return m_trajectoryIdHasBeenSet; }
58 template <typename TrajectoryIdT = Aws::String>
59 void SetTrajectoryId(TrajectoryIdT&& value) {
60 m_trajectoryIdHasBeenSet = true;
61 m_trajectoryId = std::forward<TrajectoryIdT>(value);
62 }
63 template <typename TrajectoryIdT = Aws::String>
64 SampleRequest& WithTrajectoryId(TrajectoryIdT&& value) {
65 SetTrajectoryId(std::forward<TrajectoryIdT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_jobArn;
71
72 Aws::String m_trajectoryId;
73
74 bool m_jobArnHasBeenSet = false;
75 bool m_trajectoryIdHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SagemakerJobRuntime
80} // namespace Aws
SampleRequest & WithTrajectoryId(TrajectoryIdT &&value)
virtual const char * GetServiceRequestName() const override
void SetTrajectoryId(TrajectoryIdT &&value)
AWS_SAGEMAKERJOBRUNTIME_API SampleRequest()=default
SampleRequest & WithJobArn(JobArnT &&value)
AWS_SAGEMAKERJOBRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetTrajectoryId() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String