AWS SDK for C++  1.9.71
AWS SDK for C++
CidrAuthorizationContext.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
50  inline const Aws::String& GetMessage() const{ return m_message; }
51 
55  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
56 
60  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
61 
65  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
66 
70  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
71 
75  inline CidrAuthorizationContext& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
76 
80  inline CidrAuthorizationContext& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
81 
85  inline CidrAuthorizationContext& WithMessage(const char* value) { SetMessage(value); return *this;}
86 
87 
91  inline const Aws::String& GetSignature() const{ return m_signature; }
92 
96  inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
97 
101  inline void SetSignature(const Aws::String& value) { m_signatureHasBeenSet = true; m_signature = value; }
102 
106  inline void SetSignature(Aws::String&& value) { m_signatureHasBeenSet = true; m_signature = std::move(value); }
107 
111  inline void SetSignature(const char* value) { m_signatureHasBeenSet = true; m_signature.assign(value); }
112 
116  inline CidrAuthorizationContext& WithSignature(const Aws::String& value) { SetSignature(value); return *this;}
117 
121  inline CidrAuthorizationContext& WithSignature(Aws::String&& value) { SetSignature(std::move(value)); return *this;}
122 
126  inline CidrAuthorizationContext& WithSignature(const char* value) { SetSignature(value); return *this;}
127 
128  private:
129 
130  Aws::String m_message;
131  bool m_messageHasBeenSet;
132 
133  Aws::String m_signature;
134  bool m_signatureHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace EC2
139 } // namespace Aws
Aws::EC2::Model::CidrAuthorizationContext::WithSignature
CidrAuthorizationContext & WithSignature(Aws::String &&value)
Definition: CidrAuthorizationContext.h:121
Aws::EC2::Model::CidrAuthorizationContext::WithMessage
CidrAuthorizationContext & WithMessage(Aws::String &&value)
Definition: CidrAuthorizationContext.h:80
Aws::EC2::Model::CidrAuthorizationContext::CidrAuthorizationContext
CidrAuthorizationContext()
Aws::EC2::Model::CidrAuthorizationContext::SetMessage
void SetMessage(const Aws::String &value)
Definition: CidrAuthorizationContext.h:60
Aws::EC2::Model::CidrAuthorizationContext::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CidrAuthorizationContext::CidrAuthorizationContext
CidrAuthorizationContext(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CidrAuthorizationContext::GetSignature
const Aws::String & GetSignature() const
Definition: CidrAuthorizationContext.h:91
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CidrAuthorizationContext::SignatureHasBeenSet
bool SignatureHasBeenSet() const
Definition: CidrAuthorizationContext.h:96
AWSStreamFwd.h
Aws::EC2::Model::CidrAuthorizationContext::WithSignature
CidrAuthorizationContext & WithSignature(const Aws::String &value)
Definition: CidrAuthorizationContext.h:116
Aws::EC2::Model::CidrAuthorizationContext::WithMessage
CidrAuthorizationContext & WithMessage(const Aws::String &value)
Definition: CidrAuthorizationContext.h:75
Aws::EC2::Model::CidrAuthorizationContext
Definition: CidrAuthorizationContext.h:37
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CidrAuthorizationContext::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CidrAuthorizationContext::SetMessage
void SetMessage(Aws::String &&value)
Definition: CidrAuthorizationContext.h:65
AWSString.h
Aws::EC2::Model::CidrAuthorizationContext::WithSignature
CidrAuthorizationContext & WithSignature(const char *value)
Definition: CidrAuthorizationContext.h:126
Aws::EC2::Model::CidrAuthorizationContext::WithMessage
CidrAuthorizationContext & WithMessage(const char *value)
Definition: CidrAuthorizationContext.h:85
Aws::EC2::Model::CidrAuthorizationContext::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: CidrAuthorizationContext.h:55
Aws::EC2::Model::CidrAuthorizationContext::SetSignature
void SetSignature(const char *value)
Definition: CidrAuthorizationContext.h:111
Aws::EC2::Model::CidrAuthorizationContext::GetMessage
const Aws::String & GetMessage() const
Definition: CidrAuthorizationContext.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::CidrAuthorizationContext::SetSignature
void SetSignature(Aws::String &&value)
Definition: CidrAuthorizationContext.h:106
Aws::EC2::Model::CidrAuthorizationContext::operator=
CidrAuthorizationContext & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CidrAuthorizationContext::SetMessage
void SetMessage(const char *value)
Definition: CidrAuthorizationContext.h:70
EC2_EXPORTS.h
Aws::EC2::Model::CidrAuthorizationContext::SetSignature
void SetSignature(const Aws::String &value)
Definition: CidrAuthorizationContext.h:101