AWS SDK for C++  1.8.71
AWS SDK for C++
StartPipelineExecutionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace CodePipeline
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "StartPipelineExecution"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline StartPipelineExecutionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline StartPipelineExecutionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline StartPipelineExecutionRequest& WithName(const char* value) { SetName(value); return *this;}
81 
82 
87  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
88 
93  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
94 
99  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
100 
105  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
106 
111  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
112 
117  inline StartPipelineExecutionRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
118 
123  inline StartPipelineExecutionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
124 
129  inline StartPipelineExecutionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
130 
131  private:
132 
133  Aws::String m_name;
134  bool m_nameHasBeenSet;
135 
136  Aws::String m_clientRequestToken;
137  bool m_clientRequestTokenHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace CodePipeline
142 } // namespace Aws
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
#define AWS_CODEPIPELINE_API
StartPipelineExecutionRequest & WithClientRequestToken(const char *value)
StartPipelineExecutionRequest & WithName(Aws::String &&value)
StartPipelineExecutionRequest & WithClientRequestToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StartPipelineExecutionRequest & WithClientRequestToken(Aws::String &&value)
StartPipelineExecutionRequest & WithName(const Aws::String &value)
StartPipelineExecutionRequest & WithName(const char *value)