AWS SDK for C++  1.8.128
AWS SDK for C++
ReceiptIpFilter.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace SES
23 {
24 namespace Model
25 {
26 
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 
51  inline const ReceiptFilterPolicy& GetPolicy() const{ return m_policy; }
52 
57  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
58 
63  inline void SetPolicy(const ReceiptFilterPolicy& value) { m_policyHasBeenSet = true; m_policy = value; }
64 
69  inline void SetPolicy(ReceiptFilterPolicy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
70 
75  inline ReceiptIpFilter& WithPolicy(const ReceiptFilterPolicy& value) { SetPolicy(value); return *this;}
76 
81  inline ReceiptIpFilter& WithPolicy(ReceiptFilterPolicy&& value) { SetPolicy(std::move(value)); return *this;}
82 
83 
91  inline const Aws::String& GetCidr() const{ return m_cidr; }
92 
100  inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
101 
109  inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
110 
118  inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
119 
127  inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
128 
136  inline ReceiptIpFilter& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
137 
145  inline ReceiptIpFilter& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
146 
154  inline ReceiptIpFilter& WithCidr(const char* value) { SetCidr(value); return *this;}
155 
156  private:
157 
158  ReceiptFilterPolicy m_policy;
159  bool m_policyHasBeenSet;
160 
161  Aws::String m_cidr;
162  bool m_cidrHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace SES
167 } // namespace Aws
Aws::SES::Model::ReceiptIpFilter::GetCidr
const Aws::String & GetCidr() const
Definition: ReceiptIpFilter.h:91
Aws::SES::Model::ReceiptIpFilter::ReceiptIpFilter
ReceiptIpFilter()
Aws::SES::Model::ReceiptIpFilter::GetPolicy
const ReceiptFilterPolicy & GetPolicy() const
Definition: ReceiptIpFilter.h:51
Aws::SES::Model::ReceiptIpFilter::CidrHasBeenSet
bool CidrHasBeenSet() const
Definition: ReceiptIpFilter.h:100
Aws::SES::Model::ReceiptIpFilter::SetPolicy
void SetPolicy(ReceiptFilterPolicy &&value)
Definition: ReceiptIpFilter.h:69
Aws::SES::Model::ReceiptFilterPolicy
ReceiptFilterPolicy
Definition: ReceiptFilterPolicy.h:17
AWSStreamFwd.h
Aws::SES::Model::ReceiptIpFilter::WithCidr
ReceiptIpFilter & WithCidr(const Aws::String &value)
Definition: ReceiptIpFilter.h:136
Aws::SES::Model::ReceiptIpFilter::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SES::Model::ReceiptIpFilter::SetCidr
void SetCidr(Aws::String &&value)
Definition: ReceiptIpFilter.h:118
Aws::SES::Model::ReceiptIpFilter::WithCidr
ReceiptIpFilter & WithCidr(const char *value)
Definition: ReceiptIpFilter.h:154
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::ReceiptIpFilter::SetCidr
void SetCidr(const char *value)
Definition: ReceiptIpFilter.h:127
Aws::SES::Model::ReceiptIpFilter::ReceiptIpFilter
ReceiptIpFilter(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::ReceiptIpFilter::SetCidr
void SetCidr(const Aws::String &value)
Definition: ReceiptIpFilter.h:109
Aws::SES::Model::ReceiptIpFilter::operator=
ReceiptIpFilter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::SES::Model::ReceiptIpFilter
Definition: ReceiptIpFilter.h:37
Aws::SES::Model::ReceiptIpFilter::WithPolicy
ReceiptIpFilter & WithPolicy(const ReceiptFilterPolicy &value)
Definition: ReceiptIpFilter.h:75
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::ReceiptIpFilter::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: ReceiptIpFilter.h:57
Aws::SES::Model::ReceiptIpFilter::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::ReceiptIpFilter::WithPolicy
ReceiptIpFilter & WithPolicy(ReceiptFilterPolicy &&value)
Definition: ReceiptIpFilter.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::SES::Model::ReceiptIpFilter::WithCidr
ReceiptIpFilter & WithCidr(Aws::String &&value)
Definition: ReceiptIpFilter.h:145
Aws::SES::Model::ReceiptIpFilter::SetPolicy
void SetPolicy(const ReceiptFilterPolicy &value)
Definition: ReceiptIpFilter.h:63
ReceiptFilterPolicy.h