AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
49 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
50 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
52 inline GetApplicationRevisionRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
53 inline GetApplicationRevisionRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
55
57
61 inline const RevisionLocation& GetRevision() const{ return m_revision; }
62 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
63 inline void SetRevision(const RevisionLocation& value) { m_revisionHasBeenSet = true; m_revision = value; }
64 inline void SetRevision(RevisionLocation&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
65 inline GetApplicationRevisionRequest& WithRevision(const RevisionLocation& value) { SetRevision(value); return *this;}
66 inline GetApplicationRevisionRequest& WithRevision(RevisionLocation&& value) { SetRevision(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_applicationName;
71 bool m_applicationNameHasBeenSet = false;
72
73 RevisionLocation m_revision;
74 bool m_revisionHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CodeDeploy
79} // namespace Aws
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
GetApplicationRevisionRequest & WithRevision(RevisionLocation &&value)
GetApplicationRevisionRequest & WithRevision(const RevisionLocation &value)
GetApplicationRevisionRequest & WithApplicationName(const char *value)
GetApplicationRevisionRequest & WithApplicationName(const Aws::String &value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetApplicationRevisionRequest & WithApplicationName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String