1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/cloud9/Cloud9_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/cloud9/model/Environment.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21   class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Cloud9
25 {
26 namespace Model
27 {
28   class AWS_CLOUD9_API DescribeEnvironmentsResult
29   {
30   public:
31     DescribeEnvironmentsResult();
32     DescribeEnvironmentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33     DescribeEnvironmentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 
35 
36     /**
37      * <p>Information about the environments that are returned.</p>
38      */
GetEnvironments()39     inline const Aws::Vector<Environment>& GetEnvironments() const{ return m_environments; }
40 
41     /**
42      * <p>Information about the environments that are returned.</p>
43      */
SetEnvironments(const Aws::Vector<Environment> & value)44     inline void SetEnvironments(const Aws::Vector<Environment>& value) { m_environments = value; }
45 
46     /**
47      * <p>Information about the environments that are returned.</p>
48      */
SetEnvironments(Aws::Vector<Environment> && value)49     inline void SetEnvironments(Aws::Vector<Environment>&& value) { m_environments = std::move(value); }
50 
51     /**
52      * <p>Information about the environments that are returned.</p>
53      */
WithEnvironments(const Aws::Vector<Environment> & value)54     inline DescribeEnvironmentsResult& WithEnvironments(const Aws::Vector<Environment>& value) { SetEnvironments(value); return *this;}
55 
56     /**
57      * <p>Information about the environments that are returned.</p>
58      */
WithEnvironments(Aws::Vector<Environment> && value)59     inline DescribeEnvironmentsResult& WithEnvironments(Aws::Vector<Environment>&& value) { SetEnvironments(std::move(value)); return *this;}
60 
61     /**
62      * <p>Information about the environments that are returned.</p>
63      */
AddEnvironments(const Environment & value)64     inline DescribeEnvironmentsResult& AddEnvironments(const Environment& value) { m_environments.push_back(value); return *this; }
65 
66     /**
67      * <p>Information about the environments that are returned.</p>
68      */
AddEnvironments(Environment && value)69     inline DescribeEnvironmentsResult& AddEnvironments(Environment&& value) { m_environments.push_back(std::move(value)); return *this; }
70 
71   private:
72 
73     Aws::Vector<Environment> m_environments;
74   };
75 
76 } // namespace Model
77 } // namespace Cloud9
78 } // namespace Aws
79