AWS SDK for C++  1.8.71
AWS SDK for C++
RetrieveEnvironmentInfoRequest.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 
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 "RetrieveEnvironmentInfo"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
51  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
52 
60  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
61 
69  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
70 
78  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
79 
87  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
88 
96  inline RetrieveEnvironmentInfoRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
97 
105  inline RetrieveEnvironmentInfoRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
106 
114  inline RetrieveEnvironmentInfoRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
115 
116 
124  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
125 
133  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
134 
142  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
143 
151  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
152 
160  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
161 
169  inline RetrieveEnvironmentInfoRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
170 
178  inline RetrieveEnvironmentInfoRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
179 
187  inline RetrieveEnvironmentInfoRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
188 
189 
193  inline const EnvironmentInfoType& GetInfoType() const{ return m_infoType; }
194 
198  inline bool InfoTypeHasBeenSet() const { return m_infoTypeHasBeenSet; }
199 
203  inline void SetInfoType(const EnvironmentInfoType& value) { m_infoTypeHasBeenSet = true; m_infoType = value; }
204 
208  inline void SetInfoType(EnvironmentInfoType&& value) { m_infoTypeHasBeenSet = true; m_infoType = std::move(value); }
209 
213  inline RetrieveEnvironmentInfoRequest& WithInfoType(const EnvironmentInfoType& value) { SetInfoType(value); return *this;}
214 
218  inline RetrieveEnvironmentInfoRequest& WithInfoType(EnvironmentInfoType&& value) { SetInfoType(std::move(value)); return *this;}
219 
220  private:
221 
222  Aws::String m_environmentId;
223  bool m_environmentIdHasBeenSet;
224 
225  Aws::String m_environmentName;
226  bool m_environmentNameHasBeenSet;
227 
228  EnvironmentInfoType m_infoType;
229  bool m_infoTypeHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace ElasticBeanstalk
234 } // namespace Aws
#define AWS_ELASTICBEANSTALK_API
RetrieveEnvironmentInfoRequest & WithEnvironmentId(const Aws::String &value)
RetrieveEnvironmentInfoRequest & WithInfoType(EnvironmentInfoType &&value)
RetrieveEnvironmentInfoRequest & WithEnvironmentName(const char *value)
RetrieveEnvironmentInfoRequest & WithEnvironmentId(const char *value)
RetrieveEnvironmentInfoRequest & WithEnvironmentId(Aws::String &&value)
RetrieveEnvironmentInfoRequest & WithEnvironmentName(const Aws::String &value)
RetrieveEnvironmentInfoRequest & WithInfoType(const EnvironmentInfoType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RetrieveEnvironmentInfoRequest & WithEnvironmentName(Aws::String &&value)