AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClientConnectOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API ClientConnectOptions() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline bool GetEnabled() const { return m_enabled; }
43 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
44 inline void SetEnabled(bool value) {
45 m_enabledHasBeenSet = true;
46 m_enabled = value;
47 }
48 inline ClientConnectOptions& WithEnabled(bool value) {
49 SetEnabled(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetLambdaFunctionArn() const { return m_lambdaFunctionArn; }
60 inline bool LambdaFunctionArnHasBeenSet() const { return m_lambdaFunctionArnHasBeenSet; }
61 template <typename LambdaFunctionArnT = Aws::String>
62 void SetLambdaFunctionArn(LambdaFunctionArnT&& value) {
63 m_lambdaFunctionArnHasBeenSet = true;
64 m_lambdaFunctionArn = std::forward<LambdaFunctionArnT>(value);
65 }
66 template <typename LambdaFunctionArnT = Aws::String>
67 ClientConnectOptions& WithLambdaFunctionArn(LambdaFunctionArnT&& value) {
68 SetLambdaFunctionArn(std::forward<LambdaFunctionArnT>(value));
69 return *this;
70 }
72 private:
73 bool m_enabled{false};
74
75 Aws::String m_lambdaFunctionArn;
76 bool m_enabledHasBeenSet = false;
77 bool m_lambdaFunctionArnHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AWS_EC2_API ClientConnectOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetLambdaFunctionArn() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ClientConnectOptions & WithLambdaFunctionArn(LambdaFunctionArnT &&value)
AWS_EC2_API ClientConnectOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientConnectOptions & WithEnabled(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API ClientConnectOptions()=default
void SetLambdaFunctionArn(LambdaFunctionArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream