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>
16namespace LambdaMicrovms {
39 template <
typename MicrovmIdentifierT = Aws::String>
41 m_microvmIdentifierHasBeenSet =
true;
42 m_microvmIdentifier = std::forward<MicrovmIdentifierT>(value);
44 template <
typename MicrovmIdentifierT = Aws::String>
59 m_expirationInMinutesHasBeenSet =
true;
60 m_expirationInMinutes = value;
75 template <
typename AllowedPortsT = Aws::Vector<PortSpecification>>
77 m_allowedPortsHasBeenSet =
true;
78 m_allowedPorts = std::forward<AllowedPortsT>(value);
80 template <
typename AllowedPortsT = Aws::Vector<PortSpecification>>
85 template <
typename AllowedPortsT = PortSpecification>
87 m_allowedPortsHasBeenSet =
true;
88 m_allowedPorts.emplace_back(std::forward<AllowedPortsT>(value));
95 int m_expirationInMinutes{0};
98 bool m_microvmIdentifierHasBeenSet =
false;
99 bool m_expirationInMinutesHasBeenSet =
false;
100 bool m_allowedPortsHasBeenSet =
false;
void SetExpirationInMinutes(int value)
void SetMicrovmIdentifier(MicrovmIdentifierT &&value)
AWS_LAMBDAMICROVMS_API CreateMicrovmAuthTokenRequest()=default
bool MicrovmIdentifierHasBeenSet() const
bool AllowedPortsHasBeenSet() const
CreateMicrovmAuthTokenRequest & AddAllowedPorts(AllowedPortsT &&value)
CreateMicrovmAuthTokenRequest & WithExpirationInMinutes(int value)
const Aws::String & GetMicrovmIdentifier() const
CreateMicrovmAuthTokenRequest & WithMicrovmIdentifier(MicrovmIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
CreateMicrovmAuthTokenRequest & WithAllowedPorts(AllowedPortsT &&value)
bool ExpirationInMinutesHasBeenSet() const
void SetAllowedPorts(AllowedPortsT &&value)
const Aws::Vector< PortSpecification > & GetAllowedPorts() const
AWS_LAMBDAMICROVMS_API Aws::String SerializePayload() const override
int GetExpirationInMinutes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector