AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RetryBuildBatchRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuildRequest.h>
8#include <aws/codebuild/CodeBuild_EXPORTS.h>
9#include <aws/codebuild/model/RetryBuildBatchType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeBuild {
16namespace Model {
17
21 public:
22 AWS_CODEBUILD_API RetryBuildBatchRequest() = 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 "RetryBuildBatch"; }
29
30 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
61 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
62 template <typename IdempotencyTokenT = Aws::String>
63 void SetIdempotencyToken(IdempotencyTokenT&& value) {
64 m_idempotencyTokenHasBeenSet = true;
65 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
66 }
67 template <typename IdempotencyTokenT = Aws::String>
68 RetryBuildBatchRequest& WithIdempotencyToken(IdempotencyTokenT&& value) {
69 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
70 return *this;
71 }
73
75
78 inline RetryBuildBatchType GetRetryType() const { return m_retryType; }
79 inline bool RetryTypeHasBeenSet() const { return m_retryTypeHasBeenSet; }
80 inline void SetRetryType(RetryBuildBatchType value) {
81 m_retryTypeHasBeenSet = true;
82 m_retryType = value;
83 }
85 SetRetryType(value);
86 return *this;
87 }
89 private:
90 Aws::String m_id;
91
92 Aws::String m_idempotencyToken;
93
95 bool m_idHasBeenSet = false;
96 bool m_idempotencyTokenHasBeenSet = false;
97 bool m_retryTypeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace CodeBuild
102} // namespace Aws
RetryBuildBatchRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
AWS_CODEBUILD_API RetryBuildBatchRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_CODEBUILD_API Aws::String SerializePayload() const override
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RetryBuildBatchRequest & WithRetryType(RetryBuildBatchType value)
void SetIdempotencyToken(IdempotencyTokenT &&value)
RetryBuildBatchRequest & WithId(IdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String