AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ComposeEnvironmentsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
10#include <aws/elasticbeanstalk/model/EnvironmentDescription.h>
11#include <aws/elasticbeanstalk/model/ResponseMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace ElasticBeanstalk {
25namespace Model {
33 public:
34 AWS_ELASTICBEANSTALK_API ComposeEnvironmentsResult() = default;
37
39
42 inline const Aws::Vector<EnvironmentDescription>& GetEnvironments() const { return m_environments; }
43 template <typename EnvironmentsT = Aws::Vector<EnvironmentDescription>>
44 void SetEnvironments(EnvironmentsT&& value) {
45 m_environmentsHasBeenSet = true;
46 m_environments = std::forward<EnvironmentsT>(value);
47 }
48 template <typename EnvironmentsT = Aws::Vector<EnvironmentDescription>>
50 SetEnvironments(std::forward<EnvironmentsT>(value));
51 return *this;
52 }
53 template <typename EnvironmentsT = EnvironmentDescription>
55 m_environmentsHasBeenSet = true;
56 m_environments.emplace_back(std::forward<EnvironmentsT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 template <typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) {
69 m_nextTokenHasBeenSet = true;
70 m_nextToken = std::forward<NextTokenT>(value);
71 }
72 template <typename NextTokenT = Aws::String>
74 SetNextToken(std::forward<NextTokenT>(value));
75 return *this;
76 }
78
80
81 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
82 template <typename ResponseMetadataT = ResponseMetadata>
83 void SetResponseMetadata(ResponseMetadataT&& value) {
84 m_responseMetadataHasBeenSet = true;
85 m_responseMetadata = std::forward<ResponseMetadataT>(value);
86 }
87 template <typename ResponseMetadataT = ResponseMetadata>
88 ComposeEnvironmentsResult& WithResponseMetadata(ResponseMetadataT&& value) {
89 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
90 return *this;
91 }
93 private:
95
96 Aws::String m_nextToken;
97
98 ResponseMetadata m_responseMetadata;
99 bool m_environmentsHasBeenSet = false;
100 bool m_nextTokenHasBeenSet = false;
101 bool m_responseMetadataHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace ElasticBeanstalk
106} // namespace Aws
ComposeEnvironmentsResult & AddEnvironments(EnvironmentsT &&value)
const Aws::Vector< EnvironmentDescription > & GetEnvironments() const
ComposeEnvironmentsResult & WithResponseMetadata(ResponseMetadataT &&value)
ComposeEnvironmentsResult & WithEnvironments(EnvironmentsT &&value)
AWS_ELASTICBEANSTALK_API ComposeEnvironmentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ComposeEnvironmentsResult & WithNextToken(NextTokenT &&value)
AWS_ELASTICBEANSTALK_API ComposeEnvironmentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_ELASTICBEANSTALK_API ComposeEnvironmentsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument