AWS SDK for C++  1.8.95
AWS SDK for C++
UpdateApplicationResourceLifecycleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ElasticBeanstalk
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "UpdateApplicationResourceLifecycle"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
44 
48  inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
49 
53  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
54 
58  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
59 
63  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
64 
68  inline UpdateApplicationResourceLifecycleRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
69 
73  inline UpdateApplicationResourceLifecycleRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
74 
78  inline UpdateApplicationResourceLifecycleRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
79 
80 
84  inline const ApplicationResourceLifecycleConfig& GetResourceLifecycleConfig() const{ return m_resourceLifecycleConfig; }
85 
89  inline bool ResourceLifecycleConfigHasBeenSet() const { return m_resourceLifecycleConfigHasBeenSet; }
90 
94  inline void SetResourceLifecycleConfig(const ApplicationResourceLifecycleConfig& value) { m_resourceLifecycleConfigHasBeenSet = true; m_resourceLifecycleConfig = value; }
95 
99  inline void SetResourceLifecycleConfig(ApplicationResourceLifecycleConfig&& value) { m_resourceLifecycleConfigHasBeenSet = true; m_resourceLifecycleConfig = std::move(value); }
100 
104  inline UpdateApplicationResourceLifecycleRequest& WithResourceLifecycleConfig(const ApplicationResourceLifecycleConfig& value) { SetResourceLifecycleConfig(value); return *this;}
105 
109  inline UpdateApplicationResourceLifecycleRequest& WithResourceLifecycleConfig(ApplicationResourceLifecycleConfig&& value) { SetResourceLifecycleConfig(std::move(value)); return *this;}
110 
111  private:
112 
113  Aws::String m_applicationName;
114  bool m_applicationNameHasBeenSet;
115 
116  ApplicationResourceLifecycleConfig m_resourceLifecycleConfig;
117  bool m_resourceLifecycleConfigHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace ElasticBeanstalk
122 } // namespace Aws
#define AWS_ELASTICBEANSTALK_API
UpdateApplicationResourceLifecycleRequest & WithResourceLifecycleConfig(ApplicationResourceLifecycleConfig &&value)
UpdateApplicationResourceLifecycleRequest & WithApplicationName(Aws::String &&value)
UpdateApplicationResourceLifecycleRequest & WithApplicationName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateApplicationResourceLifecycleRequest & WithApplicationName(const Aws::String &value)
UpdateApplicationResourceLifecycleRequest & WithResourceLifecycleConfig(const ApplicationResourceLifecycleConfig &value)