AWS SDK for C++  0.14.3
AWS SDK for C++
SolutionStackDescription.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 Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace ElasticBeanstalk
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  SolutionStackDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetSolutionStackName() const{ return m_solutionStackName; }
52 
56  inline void SetSolutionStackName(const Aws::String& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = value; }
57 
61  inline void SetSolutionStackName(Aws::String&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = value; }
62 
66  inline void SetSolutionStackName(const char* value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName.assign(value); }
67 
71  inline SolutionStackDescription& WithSolutionStackName(const Aws::String& value) { SetSolutionStackName(value); return *this;}
72 
76  inline SolutionStackDescription& WithSolutionStackName(Aws::String&& value) { SetSolutionStackName(value); return *this;}
77 
81  inline SolutionStackDescription& WithSolutionStackName(const char* value) { SetSolutionStackName(value); return *this;}
82 
86  inline const Aws::Vector<Aws::String>& GetPermittedFileTypes() const{ return m_permittedFileTypes; }
87 
91  inline void SetPermittedFileTypes(const Aws::Vector<Aws::String>& value) { m_permittedFileTypesHasBeenSet = true; m_permittedFileTypes = value; }
92 
96  inline void SetPermittedFileTypes(Aws::Vector<Aws::String>&& value) { m_permittedFileTypesHasBeenSet = true; m_permittedFileTypes = value; }
97 
101  inline SolutionStackDescription& WithPermittedFileTypes(const Aws::Vector<Aws::String>& value) { SetPermittedFileTypes(value); return *this;}
102 
106  inline SolutionStackDescription& WithPermittedFileTypes(Aws::Vector<Aws::String>&& value) { SetPermittedFileTypes(value); return *this;}
107 
111  inline SolutionStackDescription& AddPermittedFileTypes(const Aws::String& value) { m_permittedFileTypesHasBeenSet = true; m_permittedFileTypes.push_back(value); return *this; }
112 
116  inline SolutionStackDescription& AddPermittedFileTypes(Aws::String&& value) { m_permittedFileTypesHasBeenSet = true; m_permittedFileTypes.push_back(value); return *this; }
117 
121  inline SolutionStackDescription& AddPermittedFileTypes(const char* value) { m_permittedFileTypesHasBeenSet = true; m_permittedFileTypes.push_back(value); return *this; }
122 
123  private:
124  Aws::String m_solutionStackName;
125  bool m_solutionStackNameHasBeenSet;
126  Aws::Vector<Aws::String> m_permittedFileTypes;
127  bool m_permittedFileTypesHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace ElasticBeanstalk
132 } // namespace Aws
SolutionStackDescription & AddPermittedFileTypes(Aws::String &&value)
#define AWS_ELASTICBEANSTALK_API
SolutionStackDescription & AddPermittedFileTypes(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetPermittedFileTypes(const Aws::Vector< Aws::String > &value)
SolutionStackDescription & AddPermittedFileTypes(const Aws::String &value)
SolutionStackDescription & WithSolutionStackName(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetPermittedFileTypes(Aws::Vector< Aws::String > &&value)
SolutionStackDescription & WithSolutionStackName(Aws::String &&value)
SolutionStackDescription & WithPermittedFileTypes(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Aws::String > & GetPermittedFileTypes() const
SolutionStackDescription & WithSolutionStackName(const Aws::String &value)
SolutionStackDescription & WithPermittedFileTypes(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).