AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListTargetsRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/vpc-lattice/model/Target.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace VPCLattice
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_VPCLATTICE_API ListTargetsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListTargets"; }
37
38 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
39
40 AWS_VPCLATTICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline int GetMaxResults() const { return m_maxResults; }
48 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
49 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
50 inline ListTargetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
52
54
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 template<typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
61 template<typename NextTokenT = Aws::String>
62 ListTargetsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
64
66
69 inline const Aws::String& GetTargetGroupIdentifier() const { return m_targetGroupIdentifier; }
70 inline bool TargetGroupIdentifierHasBeenSet() const { return m_targetGroupIdentifierHasBeenSet; }
71 template<typename TargetGroupIdentifierT = Aws::String>
72 void SetTargetGroupIdentifier(TargetGroupIdentifierT&& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = std::forward<TargetGroupIdentifierT>(value); }
73 template<typename TargetGroupIdentifierT = Aws::String>
74 ListTargetsRequest& WithTargetGroupIdentifier(TargetGroupIdentifierT&& value) { SetTargetGroupIdentifier(std::forward<TargetGroupIdentifierT>(value)); return *this;}
76
78
81 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
82 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
83 template<typename TargetsT = Aws::Vector<Target>>
84 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
85 template<typename TargetsT = Aws::Vector<Target>>
86 ListTargetsRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
87 template<typename TargetsT = Target>
88 ListTargetsRequest& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
90 private:
91
92 int m_maxResults{0};
93 bool m_maxResultsHasBeenSet = false;
94
95 Aws::String m_nextToken;
96 bool m_nextTokenHasBeenSet = false;
97
98 Aws::String m_targetGroupIdentifier;
99 bool m_targetGroupIdentifierHasBeenSet = false;
100
101 Aws::Vector<Target> m_targets;
102 bool m_targetsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace VPCLattice
107} // namespace Aws
ListTargetsRequest & WithTargets(TargetsT &&value)
AWS_VPCLATTICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListTargetsRequest & WithTargetGroupIdentifier(TargetGroupIdentifierT &&value)
AWS_VPCLATTICE_API ListTargetsRequest()=default
const Aws::Vector< Target > & GetTargets() const
ListTargetsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetTargetGroupIdentifier() const
ListTargetsRequest & WithNextToken(NextTokenT &&value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
void SetTargetGroupIdentifier(TargetGroupIdentifierT &&value)
ListTargetsRequest & AddTargets(TargetsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector