AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeEnvironmentsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Cloud9
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeEnvironments"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
41  inline const Aws::Vector<Aws::String>& GetEnvironmentIds() const{ return m_environmentIds; }
42 
46  inline bool EnvironmentIdsHasBeenSet() const { return m_environmentIdsHasBeenSet; }
47 
51  inline void SetEnvironmentIds(const Aws::Vector<Aws::String>& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = value; }
52 
56  inline void SetEnvironmentIds(Aws::Vector<Aws::String>&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = std::move(value); }
57 
61  inline DescribeEnvironmentsRequest& WithEnvironmentIds(const Aws::Vector<Aws::String>& value) { SetEnvironmentIds(value); return *this;}
62 
66  inline DescribeEnvironmentsRequest& WithEnvironmentIds(Aws::Vector<Aws::String>&& value) { SetEnvironmentIds(std::move(value)); return *this;}
67 
71  inline DescribeEnvironmentsRequest& AddEnvironmentIds(const Aws::String& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; }
72 
76  inline DescribeEnvironmentsRequest& AddEnvironmentIds(Aws::String&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(std::move(value)); return *this; }
77 
81  inline DescribeEnvironmentsRequest& AddEnvironmentIds(const char* value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; }
82 
83  private:
84 
85  Aws::Vector<Aws::String> m_environmentIds;
86  bool m_environmentIdsHasBeenSet;
87  };
88 
89 } // namespace Model
90 } // namespace Cloud9
91 } // namespace Aws
void SetEnvironmentIds(Aws::Vector< Aws::String > &&value)
DescribeEnvironmentsRequest & WithEnvironmentIds(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
const Aws::Vector< Aws::String > & GetEnvironmentIds() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
DescribeEnvironmentsRequest & AddEnvironmentIds(Aws::String &&value)
DescribeEnvironmentsRequest & AddEnvironmentIds(const Aws::String &value)
void SetEnvironmentIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override
#define AWS_CLOUD9_API
DescribeEnvironmentsRequest & AddEnvironmentIds(const char *value)
DescribeEnvironmentsRequest & WithEnvironmentIds(const Aws::Vector< Aws::String > &value)