AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
DevicePostureOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ClientVpnTrustProviderRequest.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
32 public:
33 AWS_EC2_API DevicePostureOptions() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::Vector<ClientVpnTrustProviderRequest>& GetTrustProviders() const { return m_trustProviders; }
45 inline bool TrustProvidersHasBeenSet() const { return m_trustProvidersHasBeenSet; }
46 template <typename TrustProvidersT = Aws::Vector<ClientVpnTrustProviderRequest>>
47 void SetTrustProviders(TrustProvidersT&& value) {
48 m_trustProvidersHasBeenSet = true;
49 m_trustProviders = std::forward<TrustProvidersT>(value);
50 }
51 template <typename TrustProvidersT = Aws::Vector<ClientVpnTrustProviderRequest>>
52 DevicePostureOptions& WithTrustProviders(TrustProvidersT&& value) {
53 SetTrustProviders(std::forward<TrustProvidersT>(value));
54 return *this;
55 }
56 template <typename TrustProvidersT = ClientVpnTrustProviderRequest>
57 DevicePostureOptions& AddTrustProviders(TrustProvidersT&& value) {
58 m_trustProvidersHasBeenSet = true;
59 m_trustProviders.emplace_back(std::forward<TrustProvidersT>(value));
60 return *this;
61 }
63
65
70 inline bool GetEnabled() const { return m_enabled; }
71 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
72 inline void SetEnabled(bool value) {
73 m_enabledHasBeenSet = true;
74 m_enabled = value;
75 }
76 inline DevicePostureOptions& WithEnabled(bool value) {
77 SetEnabled(value);
78 return *this;
79 }
81 private:
83
84 bool m_enabled{false};
85 bool m_trustProvidersHasBeenSet = false;
86 bool m_enabledHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace EC2
91} // namespace Aws
DevicePostureOptions & WithTrustProviders(TrustProvidersT &&value)
AWS_EC2_API DevicePostureOptions()=default
DevicePostureOptions & WithEnabled(bool value)
DevicePostureOptions & AddTrustProviders(TrustProvidersT &&value)
void SetTrustProviders(TrustProvidersT &&value)
AWS_EC2_API DevicePostureOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< ClientVpnTrustProviderRequest > & GetTrustProviders() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API DevicePostureOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream