AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
60 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
61 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
62 inline ListTargetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
63 inline ListTargetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
64 inline ListTargetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
66
68
71 inline const Aws::String& GetTargetGroupIdentifier() const{ return m_targetGroupIdentifier; }
72 inline bool TargetGroupIdentifierHasBeenSet() const { return m_targetGroupIdentifierHasBeenSet; }
73 inline void SetTargetGroupIdentifier(const Aws::String& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = value; }
74 inline void SetTargetGroupIdentifier(Aws::String&& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = std::move(value); }
75 inline void SetTargetGroupIdentifier(const char* value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier.assign(value); }
77 inline ListTargetsRequest& WithTargetGroupIdentifier(Aws::String&& value) { SetTargetGroupIdentifier(std::move(value)); return *this;}
78 inline ListTargetsRequest& WithTargetGroupIdentifier(const char* value) { SetTargetGroupIdentifier(value); return *this;}
80
82
85 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
86 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
87 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
88 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
89 inline ListTargetsRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
90 inline ListTargetsRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
91 inline ListTargetsRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
92 inline ListTargetsRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
94 private:
95
96 int m_maxResults;
97 bool m_maxResultsHasBeenSet = false;
98
99 Aws::String m_nextToken;
100 bool m_nextTokenHasBeenSet = false;
101
102 Aws::String m_targetGroupIdentifier;
103 bool m_targetGroupIdentifierHasBeenSet = false;
104
105 Aws::Vector<Target> m_targets;
106 bool m_targetsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace VPCLattice
111} // namespace Aws
ListTargetsRequest & WithTargets(Aws::Vector< Target > &&value)
ListTargetsRequest & AddTargets(Target &&value)
AWS_VPCLATTICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetTargetGroupIdentifier(Aws::String &&value)
const Aws::Vector< Target > & GetTargets() const
ListTargetsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetTargetGroupIdentifier() const
void SetTargets(Aws::Vector< Target > &&value)
ListTargetsRequest & WithNextToken(Aws::String &&value)
ListTargetsRequest & WithNextToken(const char *value)
ListTargetsRequest & WithTargetGroupIdentifier(const Aws::String &value)
void SetTargets(const Aws::Vector< Target > &value)
void SetNextToken(const Aws::String &value)
ListTargetsRequest & WithTargetGroupIdentifier(const char *value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
ListTargetsRequest & WithTargetGroupIdentifier(Aws::String &&value)
ListTargetsRequest & AddTargets(const Target &value)
ListTargetsRequest & WithTargets(const Aws::Vector< Target > &value)
ListTargetsRequest & WithNextToken(const Aws::String &value)
void SetTargetGroupIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector