AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ClientLoginBannerOptions.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
30 public:
31 AWS_EC2_API ClientLoginBannerOptions() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
44 inline bool GetEnabled() const { return m_enabled; }
45 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
46 inline void SetEnabled(bool value) {
47 m_enabledHasBeenSet = true;
48 m_enabled = value;
49 }
51 SetEnabled(value);
52 return *this;
53 }
55
57
62 inline const Aws::String& GetBannerText() const { return m_bannerText; }
63 inline bool BannerTextHasBeenSet() const { return m_bannerTextHasBeenSet; }
64 template <typename BannerTextT = Aws::String>
65 void SetBannerText(BannerTextT&& value) {
66 m_bannerTextHasBeenSet = true;
67 m_bannerText = std::forward<BannerTextT>(value);
68 }
69 template <typename BannerTextT = Aws::String>
71 SetBannerText(std::forward<BannerTextT>(value));
72 return *this;
73 }
75 private:
76 bool m_enabled{false};
77
78 Aws::String m_bannerText;
79 bool m_enabledHasBeenSet = false;
80 bool m_bannerTextHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace EC2
85} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API ClientLoginBannerOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ClientLoginBannerOptions & WithBannerText(BannerTextT &&value)
ClientLoginBannerOptions & WithEnabled(bool value)
AWS_EC2_API ClientLoginBannerOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ClientLoginBannerOptions()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream