AWS SDK for C++

AWS SDK for C++ Version 1.11.822

Loading...
Searching...
No Matches
CompleteRolloutRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemakerjobruntime/SagemakerJobRuntimeRequest.h>
10#include <aws/sagemakerjobruntime/SagemakerJobRuntime_EXPORTS.h>
11#include <aws/sagemakerjobruntime/model/CompletionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SagemakerJobRuntime {
17namespace Model {
18
22 public:
23 AWS_SAGEMAKERJOBRUNTIME_API CompleteRolloutRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CompleteRollout"; }
30
31 AWS_SAGEMAKERJOBRUNTIME_API Aws::String SerializePayload() const override;
32
33 AWS_SAGEMAKERJOBRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetJobArn() const { return m_jobArn; }
40 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
41 template <typename JobArnT = Aws::String>
42 void SetJobArn(JobArnT&& value) {
43 m_jobArnHasBeenSet = true;
44 m_jobArn = std::forward<JobArnT>(value);
45 }
46 template <typename JobArnT = Aws::String>
48 SetJobArn(std::forward<JobArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTrajectoryId() const { return m_trajectoryId; }
58 inline bool TrajectoryIdHasBeenSet() const { return m_trajectoryIdHasBeenSet; }
59 template <typename TrajectoryIdT = Aws::String>
60 void SetTrajectoryId(TrajectoryIdT&& value) {
61 m_trajectoryIdHasBeenSet = true;
62 m_trajectoryId = std::forward<TrajectoryIdT>(value);
63 }
64 template <typename TrajectoryIdT = Aws::String>
65 CompleteRolloutRequest& WithTrajectoryId(TrajectoryIdT&& value) {
66 SetTrajectoryId(std::forward<TrajectoryIdT>(value));
67 return *this;
68 }
70
72
77 inline CompletionStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(CompletionStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetClientToken() const { return m_clientToken; }
95 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
96 template <typename ClientTokenT = Aws::String>
97 void SetClientToken(ClientTokenT&& value) {
98 m_clientTokenHasBeenSet = true;
99 m_clientToken = std::forward<ClientTokenT>(value);
100 }
101 template <typename ClientTokenT = Aws::String>
103 SetClientToken(std::forward<ClientTokenT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_jobArn;
109
110 Aws::String m_trajectoryId;
111
113
115 bool m_jobArnHasBeenSet = false;
116 bool m_trajectoryIdHasBeenSet = false;
117 bool m_statusHasBeenSet = false;
118 bool m_clientTokenHasBeenSet = true;
119};
120
121} // namespace Model
122} // namespace SagemakerJobRuntime
123} // namespace Aws
CompleteRolloutRequest & WithStatus(CompletionStatus value)
CompleteRolloutRequest & WithJobArn(JobArnT &&value)
CompleteRolloutRequest & WithTrajectoryId(TrajectoryIdT &&value)
AWS_SAGEMAKERJOBRUNTIME_API Aws::String SerializePayload() const override
CompleteRolloutRequest & WithClientToken(ClientTokenT &&value)
AWS_SAGEMAKERJOBRUNTIME_API CompleteRolloutRequest()=default
AWS_SAGEMAKERJOBRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String