AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeElasticIpsRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpsWorks
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPSWORKS_API DescribeElasticIpsRequest() = default;
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 "DescribeElasticIps"; }
32
33 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 template<typename InstanceIdT = Aws::String>
47 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
48 template<typename InstanceIdT = Aws::String>
49 DescribeElasticIpsRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
51
53
58 inline const Aws::String& GetStackId() const { return m_stackId; }
59 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
60 template<typename StackIdT = Aws::String>
61 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
62 template<typename StackIdT = Aws::String>
63 DescribeElasticIpsRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
65
67
73 inline const Aws::Vector<Aws::String>& GetIps() const { return m_ips; }
74 inline bool IpsHasBeenSet() const { return m_ipsHasBeenSet; }
75 template<typename IpsT = Aws::Vector<Aws::String>>
76 void SetIps(IpsT&& value) { m_ipsHasBeenSet = true; m_ips = std::forward<IpsT>(value); }
77 template<typename IpsT = Aws::Vector<Aws::String>>
78 DescribeElasticIpsRequest& WithIps(IpsT&& value) { SetIps(std::forward<IpsT>(value)); return *this;}
79 template<typename IpsT = Aws::String>
80 DescribeElasticIpsRequest& AddIps(IpsT&& value) { m_ipsHasBeenSet = true; m_ips.emplace_back(std::forward<IpsT>(value)); return *this; }
82 private:
83
84 Aws::String m_instanceId;
85 bool m_instanceIdHasBeenSet = false;
86
87 Aws::String m_stackId;
88 bool m_stackIdHasBeenSet = false;
89
91 bool m_ipsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace OpsWorks
96} // namespace Aws
AWS_OPSWORKS_API Aws::String SerializePayload() const override
DescribeElasticIpsRequest & WithStackId(StackIdT &&value)
const Aws::Vector< Aws::String > & GetIps() const
DescribeElasticIpsRequest & WithInstanceId(InstanceIdT &&value)
DescribeElasticIpsRequest & AddIps(IpsT &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeElasticIpsRequest & WithIps(IpsT &&value)
AWS_OPSWORKS_API DescribeElasticIpsRequest()=default
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector