AWS SDK for C++  0.12.9
AWS SDK for C++
BatchGetDeploymentGroupsRequest.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 CodeDeploy
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
44 
49  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
50 
55  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
56 
61  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
62 
67  inline BatchGetDeploymentGroupsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
68 
73  inline BatchGetDeploymentGroupsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
74 
79  inline BatchGetDeploymentGroupsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
80 
84  inline const Aws::Vector<Aws::String>& GetDeploymentGroupNames() const{ return m_deploymentGroupNames; }
85 
89  inline void SetDeploymentGroupNames(const Aws::Vector<Aws::String>& value) { m_deploymentGroupNamesHasBeenSet = true; m_deploymentGroupNames = value; }
90 
94  inline void SetDeploymentGroupNames(Aws::Vector<Aws::String>&& value) { m_deploymentGroupNamesHasBeenSet = true; m_deploymentGroupNames = value; }
95 
99  inline BatchGetDeploymentGroupsRequest& WithDeploymentGroupNames(const Aws::Vector<Aws::String>& value) { SetDeploymentGroupNames(value); return *this;}
100 
104  inline BatchGetDeploymentGroupsRequest& WithDeploymentGroupNames(Aws::Vector<Aws::String>&& value) { SetDeploymentGroupNames(value); return *this;}
105 
109  inline BatchGetDeploymentGroupsRequest& AddDeploymentGroupNames(const Aws::String& value) { m_deploymentGroupNamesHasBeenSet = true; m_deploymentGroupNames.push_back(value); return *this; }
110 
114  inline BatchGetDeploymentGroupsRequest& AddDeploymentGroupNames(Aws::String&& value) { m_deploymentGroupNamesHasBeenSet = true; m_deploymentGroupNames.push_back(value); return *this; }
115 
119  inline BatchGetDeploymentGroupsRequest& AddDeploymentGroupNames(const char* value) { m_deploymentGroupNamesHasBeenSet = true; m_deploymentGroupNames.push_back(value); return *this; }
120 
121  private:
122  Aws::String m_applicationName;
123  bool m_applicationNameHasBeenSet;
124  Aws::Vector<Aws::String> m_deploymentGroupNames;
125  bool m_deploymentGroupNamesHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace CodeDeploy
130 } // namespace Aws
void SetDeploymentGroupNames(const Aws::Vector< Aws::String > &value)
BatchGetDeploymentGroupsRequest & AddDeploymentGroupNames(Aws::String &&value)
BatchGetDeploymentGroupsRequest & WithApplicationName(const char *value)
BatchGetDeploymentGroupsRequest & AddDeploymentGroupNames(const char *value)
BatchGetDeploymentGroupsRequest & WithDeploymentGroupNames(const Aws::Vector< Aws::String > &value)
BatchGetDeploymentGroupsRequest & WithApplicationName(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
BatchGetDeploymentGroupsRequest & WithApplicationName(const Aws::String &value)
BatchGetDeploymentGroupsRequest & AddDeploymentGroupNames(const Aws::String &value)
#define AWS_CODEDEPLOY_API
BatchGetDeploymentGroupsRequest & WithDeploymentGroupNames(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).
const Aws::Vector< Aws::String > & GetDeploymentGroupNames() const