AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListAttachmentsRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/networkmanager/model/AttachmentType.h>
11#include <aws/networkmanager/model/AttachmentState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace NetworkManager
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_NETWORKMANAGER_API ListAttachmentsRequest();
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 "ListAttachments"; }
37
38 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
39
40 AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetCoreNetworkId() const{ return m_coreNetworkId; }
48 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
49 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
50 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
51 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
52 inline ListAttachmentsRequest& WithCoreNetworkId(const Aws::String& value) { SetCoreNetworkId(value); return *this;}
53 inline ListAttachmentsRequest& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
54 inline ListAttachmentsRequest& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
56
58
61 inline const AttachmentType& GetAttachmentType() const{ return m_attachmentType; }
62 inline bool AttachmentTypeHasBeenSet() const { return m_attachmentTypeHasBeenSet; }
63 inline void SetAttachmentType(const AttachmentType& value) { m_attachmentTypeHasBeenSet = true; m_attachmentType = value; }
64 inline void SetAttachmentType(AttachmentType&& value) { m_attachmentTypeHasBeenSet = true; m_attachmentType = std::move(value); }
65 inline ListAttachmentsRequest& WithAttachmentType(const AttachmentType& value) { SetAttachmentType(value); return *this;}
66 inline ListAttachmentsRequest& WithAttachmentType(AttachmentType&& value) { SetAttachmentType(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetEdgeLocation() const{ return m_edgeLocation; }
74 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
75 inline void SetEdgeLocation(const Aws::String& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = value; }
76 inline void SetEdgeLocation(Aws::String&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::move(value); }
77 inline void SetEdgeLocation(const char* value) { m_edgeLocationHasBeenSet = true; m_edgeLocation.assign(value); }
78 inline ListAttachmentsRequest& WithEdgeLocation(const Aws::String& value) { SetEdgeLocation(value); return *this;}
79 inline ListAttachmentsRequest& WithEdgeLocation(Aws::String&& value) { SetEdgeLocation(std::move(value)); return *this;}
80 inline ListAttachmentsRequest& WithEdgeLocation(const char* value) { SetEdgeLocation(value); return *this;}
82
84
87 inline const AttachmentState& GetState() const{ return m_state; }
88 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
89 inline void SetState(const AttachmentState& value) { m_stateHasBeenSet = true; m_state = value; }
90 inline void SetState(AttachmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
91 inline ListAttachmentsRequest& WithState(const AttachmentState& value) { SetState(value); return *this;}
92 inline ListAttachmentsRequest& WithState(AttachmentState&& value) { SetState(std::move(value)); return *this;}
94
96
99 inline int GetMaxResults() const{ return m_maxResults; }
100 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
102 inline ListAttachmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
104
106
109 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
110 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
111 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
112 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
113 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
114 inline ListAttachmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
115 inline ListAttachmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
116 inline ListAttachmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
118 private:
119
120 Aws::String m_coreNetworkId;
121 bool m_coreNetworkIdHasBeenSet = false;
122
123 AttachmentType m_attachmentType;
124 bool m_attachmentTypeHasBeenSet = false;
125
126 Aws::String m_edgeLocation;
127 bool m_edgeLocationHasBeenSet = false;
128
129 AttachmentState m_state;
130 bool m_stateHasBeenSet = false;
131
132 int m_maxResults;
133 bool m_maxResultsHasBeenSet = false;
134
135 Aws::String m_nextToken;
136 bool m_nextTokenHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace NetworkManager
141} // namespace Aws
AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAttachmentsRequest & WithCoreNetworkId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListAttachmentsRequest & WithAttachmentType(AttachmentType &&value)
ListAttachmentsRequest & WithEdgeLocation(const Aws::String &value)
ListAttachmentsRequest & WithEdgeLocation(const char *value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
ListAttachmentsRequest & WithCoreNetworkId(const char *value)
ListAttachmentsRequest & WithCoreNetworkId(Aws::String &&value)
ListAttachmentsRequest & WithNextToken(const Aws::String &value)
ListAttachmentsRequest & WithNextToken(const char *value)
ListAttachmentsRequest & WithState(const AttachmentState &value)
ListAttachmentsRequest & WithNextToken(Aws::String &&value)
ListAttachmentsRequest & WithState(AttachmentState &&value)
ListAttachmentsRequest & WithAttachmentType(const AttachmentType &value)
ListAttachmentsRequest & WithEdgeLocation(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String