AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StartCommandExecutionRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuildRequest.h>
8#include <aws/codebuild/CodeBuild_EXPORTS.h>
9#include <aws/codebuild/model/CommandType.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 StartCommandExecutionRequest() = 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 "StartCommandExecution"; }
29
30 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetSandboxId() const { return m_sandboxId; }
39 inline bool SandboxIdHasBeenSet() const { return m_sandboxIdHasBeenSet; }
40 template <typename SandboxIdT = Aws::String>
41 void SetSandboxId(SandboxIdT&& value) {
42 m_sandboxIdHasBeenSet = true;
43 m_sandboxId = std::forward<SandboxIdT>(value);
44 }
45 template <typename SandboxIdT = Aws::String>
47 SetSandboxId(std::forward<SandboxIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetCommand() const { return m_command; }
57 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
58 template <typename CommandT = Aws::String>
59 void SetCommand(CommandT&& value) {
60 m_commandHasBeenSet = true;
61 m_command = std::forward<CommandT>(value);
62 }
63 template <typename CommandT = Aws::String>
65 SetCommand(std::forward<CommandT>(value));
66 return *this;
67 }
69
71
74 inline CommandType GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(CommandType value) {
77 m_typeHasBeenSet = true;
78 m_type = value;
79 }
81 SetType(value);
82 return *this;
83 }
85 private:
86 Aws::String m_sandboxId;
87
88 Aws::String m_command;
89
91 bool m_sandboxIdHasBeenSet = false;
92 bool m_commandHasBeenSet = false;
93 bool m_typeHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CodeBuild
98} // namespace Aws
AWS_CODEBUILD_API StartCommandExecutionRequest()=default
StartCommandExecutionRequest & WithType(CommandType value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartCommandExecutionRequest & WithCommand(CommandT &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
StartCommandExecutionRequest & WithSandboxId(SandboxIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String