AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EncryptionSupport.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#include <aws/ec2/model/EncryptionStateValue.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
30 public:
31 AWS_EC2_API EncryptionSupport() = default;
32 AWS_EC2_API EncryptionSupport(const Aws::Utils::Xml::XmlNode& xmlNode);
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
42 inline EncryptionStateValue GetEncryptionState() const { return m_encryptionState; }
43 inline bool EncryptionStateHasBeenSet() const { return m_encryptionStateHasBeenSet; }
45 m_encryptionStateHasBeenSet = true;
46 m_encryptionState = value;
47 }
49 SetEncryptionState(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetStateMessage() const { return m_stateMessage; }
59 inline bool StateMessageHasBeenSet() const { return m_stateMessageHasBeenSet; }
60 template <typename StateMessageT = Aws::String>
61 void SetStateMessage(StateMessageT&& value) {
62 m_stateMessageHasBeenSet = true;
63 m_stateMessage = std::forward<StateMessageT>(value);
64 }
65 template <typename StateMessageT = Aws::String>
66 EncryptionSupport& WithStateMessage(StateMessageT&& value) {
67 SetStateMessage(std::forward<StateMessageT>(value));
68 return *this;
69 }
71 private:
73
74 Aws::String m_stateMessage;
75 bool m_encryptionStateHasBeenSet = false;
76 bool m_stateMessageHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
void SetEncryptionState(EncryptionStateValue value)
EncryptionSupport & WithStateMessage(StateMessageT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetStateMessage() const
EncryptionStateValue GetEncryptionState() const
AWS_EC2_API EncryptionSupport(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API EncryptionSupport()=default
AWS_EC2_API EncryptionSupport & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStateMessage(StateMessageT &&value)
EncryptionSupport & WithEncryptionState(EncryptionStateValue value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream