AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetPipelineRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipelineRequest.h>
8#include <aws/codepipeline/CodePipeline_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodePipeline {
15namespace Model {
16
24 public:
25 AWS_CODEPIPELINE_API GetPipelineRequest() = 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 "GetPipeline"; }
32
33 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
34
35 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 GetPipelineRequest& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
61 inline int GetVersion() const { return m_version; }
62 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
63 inline void SetVersion(int value) {
64 m_versionHasBeenSet = true;
65 m_version = value;
66 }
67 inline GetPipelineRequest& WithVersion(int value) {
68 SetVersion(value);
69 return *this;
70 }
72 private:
73 Aws::String m_name;
74
75 int m_version{0};
76 bool m_nameHasBeenSet = false;
77 bool m_versionHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CodePipeline
82} // namespace Aws
GetPipelineRequest & WithVersion(int value)
AWS_CODEPIPELINE_API GetPipelineRequest()=default
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetPipelineRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String