AWS SDK for C++

AWS SDK for C++ Version 1.11.834

Loading...
Searching...
No Matches
CreateMicrovmAuthTokenRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lambda-microvms/LambdaMicrovmsRequest.h>
10#include <aws/lambda-microvms/LambdaMicrovms_EXPORTS.h>
11#include <aws/lambda-microvms/model/PortSpecification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LambdaMicrovms {
17namespace Model {
18
22 public:
23 AWS_LAMBDAMICROVMS_API CreateMicrovmAuthTokenRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateMicrovmAuthToken"; }
30
31 AWS_LAMBDAMICROVMS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetMicrovmIdentifier() const { return m_microvmIdentifier; }
38 inline bool MicrovmIdentifierHasBeenSet() const { return m_microvmIdentifierHasBeenSet; }
39 template <typename MicrovmIdentifierT = Aws::String>
40 void SetMicrovmIdentifier(MicrovmIdentifierT&& value) {
41 m_microvmIdentifierHasBeenSet = true;
42 m_microvmIdentifier = std::forward<MicrovmIdentifierT>(value);
43 }
44 template <typename MicrovmIdentifierT = Aws::String>
46 SetMicrovmIdentifier(std::forward<MicrovmIdentifierT>(value));
47 return *this;
48 }
50
52
56 inline int GetExpirationInMinutes() const { return m_expirationInMinutes; }
57 inline bool ExpirationInMinutesHasBeenSet() const { return m_expirationInMinutesHasBeenSet; }
58 inline void SetExpirationInMinutes(int value) {
59 m_expirationInMinutesHasBeenSet = true;
60 m_expirationInMinutes = value;
61 }
64 return *this;
65 }
67
69
73 inline const Aws::Vector<PortSpecification>& GetAllowedPorts() const { return m_allowedPorts; }
74 inline bool AllowedPortsHasBeenSet() const { return m_allowedPortsHasBeenSet; }
75 template <typename AllowedPortsT = Aws::Vector<PortSpecification>>
76 void SetAllowedPorts(AllowedPortsT&& value) {
77 m_allowedPortsHasBeenSet = true;
78 m_allowedPorts = std::forward<AllowedPortsT>(value);
79 }
80 template <typename AllowedPortsT = Aws::Vector<PortSpecification>>
82 SetAllowedPorts(std::forward<AllowedPortsT>(value));
83 return *this;
84 }
85 template <typename AllowedPortsT = PortSpecification>
87 m_allowedPortsHasBeenSet = true;
88 m_allowedPorts.emplace_back(std::forward<AllowedPortsT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_microvmIdentifier;
94
95 int m_expirationInMinutes{0};
96
97 Aws::Vector<PortSpecification> m_allowedPorts;
98 bool m_microvmIdentifierHasBeenSet = false;
99 bool m_expirationInMinutesHasBeenSet = false;
100 bool m_allowedPortsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace LambdaMicrovms
105} // namespace Aws
AWS_LAMBDAMICROVMS_API CreateMicrovmAuthTokenRequest()=default
CreateMicrovmAuthTokenRequest & AddAllowedPorts(AllowedPortsT &&value)
CreateMicrovmAuthTokenRequest & WithMicrovmIdentifier(MicrovmIdentifierT &&value)
CreateMicrovmAuthTokenRequest & WithAllowedPorts(AllowedPortsT &&value)
const Aws::Vector< PortSpecification > & GetAllowedPorts() const
AWS_LAMBDAMICROVMS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector