AWS SDK for C++  0.12.9
AWS SDK for C++
ComposeEnvironmentsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace ElasticBeanstalk
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
41 
45  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
46 
50  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
51 
55  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
56 
60  inline ComposeEnvironmentsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
61 
65  inline ComposeEnvironmentsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
66 
70  inline ComposeEnvironmentsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
71 
79  inline const Aws::String& GetGroupName() const{ return m_groupName; }
80 
88  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
89 
97  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
98 
106  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
107 
115  inline ComposeEnvironmentsRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
116 
124  inline ComposeEnvironmentsRequest& WithGroupName(Aws::String&& value) { SetGroupName(value); return *this;}
125 
133  inline ComposeEnvironmentsRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
134 
142  inline const Aws::Vector<Aws::String>& GetVersionLabels() const{ return m_versionLabels; }
143 
151  inline void SetVersionLabels(const Aws::Vector<Aws::String>& value) { m_versionLabelsHasBeenSet = true; m_versionLabels = value; }
152 
160  inline void SetVersionLabels(Aws::Vector<Aws::String>&& value) { m_versionLabelsHasBeenSet = true; m_versionLabels = value; }
161 
169  inline ComposeEnvironmentsRequest& WithVersionLabels(const Aws::Vector<Aws::String>& value) { SetVersionLabels(value); return *this;}
170 
178  inline ComposeEnvironmentsRequest& WithVersionLabels(Aws::Vector<Aws::String>&& value) { SetVersionLabels(value); return *this;}
179 
187  inline ComposeEnvironmentsRequest& AddVersionLabels(const Aws::String& value) { m_versionLabelsHasBeenSet = true; m_versionLabels.push_back(value); return *this; }
188 
196  inline ComposeEnvironmentsRequest& AddVersionLabels(Aws::String&& value) { m_versionLabelsHasBeenSet = true; m_versionLabels.push_back(value); return *this; }
197 
205  inline ComposeEnvironmentsRequest& AddVersionLabels(const char* value) { m_versionLabelsHasBeenSet = true; m_versionLabels.push_back(value); return *this; }
206 
207  private:
208  Aws::String m_applicationName;
209  bool m_applicationNameHasBeenSet;
210  Aws::String m_groupName;
211  bool m_groupNameHasBeenSet;
212  Aws::Vector<Aws::String> m_versionLabels;
213  bool m_versionLabelsHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace ElasticBeanstalk
218 } // namespace Aws
ComposeEnvironmentsRequest & WithGroupName(const char *value)
ComposeEnvironmentsRequest & WithGroupName(const Aws::String &value)
ComposeEnvironmentsRequest & AddVersionLabels(const Aws::String &value)
#define AWS_ELASTICBEANSTALK_API
ComposeEnvironmentsRequest & AddVersionLabels(const char *value)
ComposeEnvironmentsRequest & WithGroupName(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ComposeEnvironmentsRequest & WithVersionLabels(const Aws::Vector< Aws::String > &value)
void SetVersionLabels(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetVersionLabels() const
ComposeEnvironmentsRequest & WithApplicationName(Aws::String &&value)
ComposeEnvironmentsRequest & WithApplicationName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ComposeEnvironmentsRequest & WithApplicationName(const char *value)
ComposeEnvironmentsRequest & AddVersionLabels(Aws::String &&value)
ComposeEnvironmentsRequest & WithVersionLabels(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).