AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
StartCodeReviewJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgentRequest.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/DiffSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityAgent {
16namespace Model {
17
25 public:
26 AWS_SECURITYAGENT_API StartCodeReviewJobRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartCodeReviewJob"; }
33
34 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
41 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
42 template <typename AgentSpaceIdT = Aws::String>
43 void SetAgentSpaceId(AgentSpaceIdT&& value) {
44 m_agentSpaceIdHasBeenSet = true;
45 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
46 }
47 template <typename AgentSpaceIdT = Aws::String>
49 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
59 inline bool CodeReviewIdHasBeenSet() const { return m_codeReviewIdHasBeenSet; }
60 template <typename CodeReviewIdT = Aws::String>
61 void SetCodeReviewId(CodeReviewIdT&& value) {
62 m_codeReviewIdHasBeenSet = true;
63 m_codeReviewId = std::forward<CodeReviewIdT>(value);
64 }
65 template <typename CodeReviewIdT = Aws::String>
67 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
68 return *this;
69 }
71
73
77 inline const DiffSource& GetDiffSource() const { return m_diffSource; }
78 inline bool DiffSourceHasBeenSet() const { return m_diffSourceHasBeenSet; }
79 template <typename DiffSourceT = DiffSource>
80 void SetDiffSource(DiffSourceT&& value) {
81 m_diffSourceHasBeenSet = true;
82 m_diffSource = std::forward<DiffSourceT>(value);
83 }
84 template <typename DiffSourceT = DiffSource>
86 SetDiffSource(std::forward<DiffSourceT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_agentSpaceId;
92
93 Aws::String m_codeReviewId;
94
95 DiffSource m_diffSource;
96 bool m_agentSpaceIdHasBeenSet = false;
97 bool m_codeReviewIdHasBeenSet = false;
98 bool m_diffSourceHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SecurityAgent
103} // namespace Aws
StartCodeReviewJobRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
StartCodeReviewJobRequest & WithCodeReviewId(CodeReviewIdT &&value)
AWS_SECURITYAGENT_API StartCodeReviewJobRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
StartCodeReviewJobRequest & WithDiffSource(DiffSourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String