AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetApplicationRevisionRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/CodeDeployRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codedeploy/model/RevisionLocation.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeDeploy
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_CODEDEPLOY_API GetApplicationRevisionRequest() = default;
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 "GetApplicationRevision"; }
36
37 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
47 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
48 template<typename ApplicationNameT = Aws::String>
49 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
50 template<typename ApplicationNameT = Aws::String>
51 GetApplicationRevisionRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
53
55
59 inline const RevisionLocation& GetRevision() const { return m_revision; }
60 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
61 template<typename RevisionT = RevisionLocation>
62 void SetRevision(RevisionT&& value) { m_revisionHasBeenSet = true; m_revision = std::forward<RevisionT>(value); }
63 template<typename RevisionT = RevisionLocation>
64 GetApplicationRevisionRequest& WithRevision(RevisionT&& value) { SetRevision(std::forward<RevisionT>(value)); return *this;}
66 private:
67
68 Aws::String m_applicationName;
69 bool m_applicationNameHasBeenSet = false;
70
71 RevisionLocation m_revision;
72 bool m_revisionHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CodeDeploy
77} // namespace Aws
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
GetApplicationRevisionRequest & WithApplicationName(ApplicationNameT &&value)
GetApplicationRevisionRequest & WithRevision(RevisionT &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODEDEPLOY_API GetApplicationRevisionRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String