AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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