AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartCommandExecutionRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codebuild/model/CommandType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeBuild
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODEBUILD_API StartCommandExecutionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartCommandExecution"; }
32
33 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetSandboxId() const { return m_sandboxId; }
43 inline bool SandboxIdHasBeenSet() const { return m_sandboxIdHasBeenSet; }
44 template<typename SandboxIdT = Aws::String>
45 void SetSandboxId(SandboxIdT&& value) { m_sandboxIdHasBeenSet = true; m_sandboxId = std::forward<SandboxIdT>(value); }
46 template<typename SandboxIdT = Aws::String>
47 StartCommandExecutionRequest& WithSandboxId(SandboxIdT&& value) { SetSandboxId(std::forward<SandboxIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetCommand() const { return m_command; }
55 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
56 template<typename CommandT = Aws::String>
57 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
58 template<typename CommandT = Aws::String>
59 StartCommandExecutionRequest& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
61
63
66 inline CommandType GetType() const { return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(CommandType value) { m_typeHasBeenSet = true; m_type = value; }
69 inline StartCommandExecutionRequest& WithType(CommandType value) { SetType(value); return *this;}
71 private:
72
73 Aws::String m_sandboxId;
74 bool m_sandboxIdHasBeenSet = false;
75
76 Aws::String m_command;
77 bool m_commandHasBeenSet = false;
78
80 bool m_typeHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace CodeBuild
85} // 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