AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateApplicationRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeployRequest.h>
8#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodeDeploy {
15namespace Model {
16
24 public:
25 AWS_CODEDEPLOY_API UpdateApplicationRequest() = 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 "UpdateApplication"; }
32
33 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
42 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
43 template <typename ApplicationNameT = Aws::String>
44 void SetApplicationName(ApplicationNameT&& value) {
45 m_applicationNameHasBeenSet = true;
46 m_applicationName = std::forward<ApplicationNameT>(value);
47 }
48 template <typename ApplicationNameT = Aws::String>
49 UpdateApplicationRequest& WithApplicationName(ApplicationNameT&& value) {
50 SetApplicationName(std::forward<ApplicationNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNewApplicationName() const { return m_newApplicationName; }
60 inline bool NewApplicationNameHasBeenSet() const { return m_newApplicationNameHasBeenSet; }
61 template <typename NewApplicationNameT = Aws::String>
62 void SetNewApplicationName(NewApplicationNameT&& value) {
63 m_newApplicationNameHasBeenSet = true;
64 m_newApplicationName = std::forward<NewApplicationNameT>(value);
65 }
66 template <typename NewApplicationNameT = Aws::String>
67 UpdateApplicationRequest& WithNewApplicationName(NewApplicationNameT&& value) {
68 SetNewApplicationName(std::forward<NewApplicationNameT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_applicationName;
74
75 Aws::String m_newApplicationName;
76 bool m_applicationNameHasBeenSet = false;
77 bool m_newApplicationNameHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CodeDeploy
82} // namespace Aws
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
UpdateApplicationRequest & WithApplicationName(ApplicationNameT &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
UpdateApplicationRequest & WithNewApplicationName(NewApplicationNameT &&value)
AWS_CODEDEPLOY_API UpdateApplicationRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String