AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 "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 template<typename CoreNetworkIdT = Aws::String>
50 void SetCoreNetworkId(CoreNetworkIdT&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::forward<CoreNetworkIdT>(value); }
51 template<typename CoreNetworkIdT = Aws::String>
52 ListAttachmentsRequest& WithCoreNetworkId(CoreNetworkIdT&& value) { SetCoreNetworkId(std::forward<CoreNetworkIdT>(value)); return *this;}
54
56
59 inline AttachmentType GetAttachmentType() const { return m_attachmentType; }
60 inline bool AttachmentTypeHasBeenSet() const { return m_attachmentTypeHasBeenSet; }
61 inline void SetAttachmentType(AttachmentType value) { m_attachmentTypeHasBeenSet = true; m_attachmentType = value; }
64
66
69 inline const Aws::String& GetEdgeLocation() const { return m_edgeLocation; }
70 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
71 template<typename EdgeLocationT = Aws::String>
72 void SetEdgeLocation(EdgeLocationT&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::forward<EdgeLocationT>(value); }
73 template<typename EdgeLocationT = Aws::String>
74 ListAttachmentsRequest& WithEdgeLocation(EdgeLocationT&& value) { SetEdgeLocation(std::forward<EdgeLocationT>(value)); return *this;}
76
78
81 inline AttachmentState GetState() const { return m_state; }
82 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
83 inline void SetState(AttachmentState value) { m_stateHasBeenSet = true; m_state = value; }
84 inline ListAttachmentsRequest& WithState(AttachmentState value) { SetState(value); return *this;}
86
88
91 inline int GetMaxResults() const { return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
94 inline ListAttachmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
96
98
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 template<typename NextTokenT = Aws::String>
104 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
105 template<typename NextTokenT = Aws::String>
106 ListAttachmentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
108 private:
109
110 Aws::String m_coreNetworkId;
111 bool m_coreNetworkIdHasBeenSet = false;
112
113 AttachmentType m_attachmentType{AttachmentType::NOT_SET};
114 bool m_attachmentTypeHasBeenSet = false;
115
116 Aws::String m_edgeLocation;
117 bool m_edgeLocationHasBeenSet = false;
118
120 bool m_stateHasBeenSet = false;
121
122 int m_maxResults{0};
123 bool m_maxResultsHasBeenSet = false;
124
125 Aws::String m_nextToken;
126 bool m_nextTokenHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace NetworkManager
131} // namespace Aws
AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAttachmentsRequest & WithState(AttachmentState value)
virtual const char * GetServiceRequestName() const override
ListAttachmentsRequest & WithNextToken(NextTokenT &&value)
ListAttachmentsRequest & WithAttachmentType(AttachmentType value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
AWS_NETWORKMANAGER_API ListAttachmentsRequest()=default
ListAttachmentsRequest & WithEdgeLocation(EdgeLocationT &&value)
ListAttachmentsRequest & WithCoreNetworkId(CoreNetworkIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String