AWS SDK for C++  1.8.95
AWS SDK for C++
SwapEnvironmentCNAMEsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ElasticBeanstalk
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "SwapEnvironmentCNAMEs"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
49  inline const Aws::String& GetSourceEnvironmentId() const{ return m_sourceEnvironmentId; }
50 
58  inline bool SourceEnvironmentIdHasBeenSet() const { return m_sourceEnvironmentIdHasBeenSet; }
59 
67  inline void SetSourceEnvironmentId(const Aws::String& value) { m_sourceEnvironmentIdHasBeenSet = true; m_sourceEnvironmentId = value; }
68 
76  inline void SetSourceEnvironmentId(Aws::String&& value) { m_sourceEnvironmentIdHasBeenSet = true; m_sourceEnvironmentId = std::move(value); }
77 
85  inline void SetSourceEnvironmentId(const char* value) { m_sourceEnvironmentIdHasBeenSet = true; m_sourceEnvironmentId.assign(value); }
86 
94  inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentId(const Aws::String& value) { SetSourceEnvironmentId(value); return *this;}
95 
103  inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentId(Aws::String&& value) { SetSourceEnvironmentId(std::move(value)); return *this;}
104 
112  inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentId(const char* value) { SetSourceEnvironmentId(value); return *this;}
113 
114 
122  inline const Aws::String& GetSourceEnvironmentName() const{ return m_sourceEnvironmentName; }
123 
131  inline bool SourceEnvironmentNameHasBeenSet() const { return m_sourceEnvironmentNameHasBeenSet; }
132 
140  inline void SetSourceEnvironmentName(const Aws::String& value) { m_sourceEnvironmentNameHasBeenSet = true; m_sourceEnvironmentName = value; }
141 
149  inline void SetSourceEnvironmentName(Aws::String&& value) { m_sourceEnvironmentNameHasBeenSet = true; m_sourceEnvironmentName = std::move(value); }
150 
158  inline void SetSourceEnvironmentName(const char* value) { m_sourceEnvironmentNameHasBeenSet = true; m_sourceEnvironmentName.assign(value); }
159 
167  inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentName(const Aws::String& value) { SetSourceEnvironmentName(value); return *this;}
168 
176  inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentName(Aws::String&& value) { SetSourceEnvironmentName(std::move(value)); return *this;}
177 
185  inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentName(const char* value) { SetSourceEnvironmentName(value); return *this;}
186 
187 
195  inline const Aws::String& GetDestinationEnvironmentId() const{ return m_destinationEnvironmentId; }
196 
204  inline bool DestinationEnvironmentIdHasBeenSet() const { return m_destinationEnvironmentIdHasBeenSet; }
205 
213  inline void SetDestinationEnvironmentId(const Aws::String& value) { m_destinationEnvironmentIdHasBeenSet = true; m_destinationEnvironmentId = value; }
214 
222  inline void SetDestinationEnvironmentId(Aws::String&& value) { m_destinationEnvironmentIdHasBeenSet = true; m_destinationEnvironmentId = std::move(value); }
223 
231  inline void SetDestinationEnvironmentId(const char* value) { m_destinationEnvironmentIdHasBeenSet = true; m_destinationEnvironmentId.assign(value); }
232 
240  inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentId(const Aws::String& value) { SetDestinationEnvironmentId(value); return *this;}
241 
249  inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentId(Aws::String&& value) { SetDestinationEnvironmentId(std::move(value)); return *this;}
250 
258  inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentId(const char* value) { SetDestinationEnvironmentId(value); return *this;}
259 
260 
268  inline const Aws::String& GetDestinationEnvironmentName() const{ return m_destinationEnvironmentName; }
269 
277  inline bool DestinationEnvironmentNameHasBeenSet() const { return m_destinationEnvironmentNameHasBeenSet; }
278 
286  inline void SetDestinationEnvironmentName(const Aws::String& value) { m_destinationEnvironmentNameHasBeenSet = true; m_destinationEnvironmentName = value; }
287 
295  inline void SetDestinationEnvironmentName(Aws::String&& value) { m_destinationEnvironmentNameHasBeenSet = true; m_destinationEnvironmentName = std::move(value); }
296 
304  inline void SetDestinationEnvironmentName(const char* value) { m_destinationEnvironmentNameHasBeenSet = true; m_destinationEnvironmentName.assign(value); }
305 
313  inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentName(const Aws::String& value) { SetDestinationEnvironmentName(value); return *this;}
314 
322  inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentName(Aws::String&& value) { SetDestinationEnvironmentName(std::move(value)); return *this;}
323 
331  inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentName(const char* value) { SetDestinationEnvironmentName(value); return *this;}
332 
333  private:
334 
335  Aws::String m_sourceEnvironmentId;
336  bool m_sourceEnvironmentIdHasBeenSet;
337 
338  Aws::String m_sourceEnvironmentName;
339  bool m_sourceEnvironmentNameHasBeenSet;
340 
341  Aws::String m_destinationEnvironmentId;
342  bool m_destinationEnvironmentIdHasBeenSet;
343 
344  Aws::String m_destinationEnvironmentName;
345  bool m_destinationEnvironmentNameHasBeenSet;
346  };
347 
348 } // namespace Model
349 } // namespace ElasticBeanstalk
350 } // namespace Aws
SwapEnvironmentCNAMEsRequest & WithSourceEnvironmentName(Aws::String &&value)
SwapEnvironmentCNAMEsRequest & WithDestinationEnvironmentName(const Aws::String &value)
#define AWS_ELASTICBEANSTALK_API
SwapEnvironmentCNAMEsRequest & WithDestinationEnvironmentId(const Aws::String &value)
SwapEnvironmentCNAMEsRequest & WithDestinationEnvironmentName(const char *value)
SwapEnvironmentCNAMEsRequest & WithSourceEnvironmentName(const Aws::String &value)
SwapEnvironmentCNAMEsRequest & WithDestinationEnvironmentId(Aws::String &&value)
SwapEnvironmentCNAMEsRequest & WithDestinationEnvironmentId(const char *value)
SwapEnvironmentCNAMEsRequest & WithSourceEnvironmentName(const char *value)
SwapEnvironmentCNAMEsRequest & WithSourceEnvironmentId(const char *value)
SwapEnvironmentCNAMEsRequest & WithSourceEnvironmentId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SwapEnvironmentCNAMEsRequest & WithDestinationEnvironmentName(Aws::String &&value)
SwapEnvironmentCNAMEsRequest & WithSourceEnvironmentId(Aws::String &&value)