AWS SDK for C++  0.14.3
AWS SDK for C++
ReceiptFilter.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/email/SES_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace SES
31 {
32 namespace Model
33 {
34 
43  {
44  public:
45  ReceiptFilter();
47  ReceiptFilter& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48 
49  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50  void OutputToStream(Aws::OStream& oStream, const char* location) const;
51 
58  inline const Aws::String& GetName() const{ return m_name; }
59 
66  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 
74  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
75 
82  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
83 
90  inline ReceiptFilter& WithName(const Aws::String& value) { SetName(value); return *this;}
91 
98  inline ReceiptFilter& WithName(Aws::String&& value) { SetName(value); return *this;}
99 
106  inline ReceiptFilter& WithName(const char* value) { SetName(value); return *this;}
107 
112  inline const ReceiptIpFilter& GetIpFilter() const{ return m_ipFilter; }
113 
118  inline void SetIpFilter(const ReceiptIpFilter& value) { m_ipFilterHasBeenSet = true; m_ipFilter = value; }
119 
124  inline void SetIpFilter(ReceiptIpFilter&& value) { m_ipFilterHasBeenSet = true; m_ipFilter = value; }
125 
130  inline ReceiptFilter& WithIpFilter(const ReceiptIpFilter& value) { SetIpFilter(value); return *this;}
131 
136  inline ReceiptFilter& WithIpFilter(ReceiptIpFilter&& value) { SetIpFilter(value); return *this;}
137 
138  private:
139  Aws::String m_name;
140  bool m_nameHasBeenSet;
141  ReceiptIpFilter m_ipFilter;
142  bool m_ipFilterHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace SES
147 } // namespace Aws
const Aws::String & GetName() const
Definition: ReceiptFilter.h:58
ReceiptFilter & WithName(const Aws::String &value)
Definition: ReceiptFilter.h:90
void SetName(const Aws::String &value)
Definition: ReceiptFilter.h:66
const ReceiptIpFilter & GetIpFilter() const
void SetName(Aws::String &&value)
Definition: ReceiptFilter.h:74
ReceiptFilter & WithName(Aws::String &&value)
Definition: ReceiptFilter.h:98
ReceiptFilter & WithIpFilter(const ReceiptIpFilter &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetIpFilter(ReceiptIpFilter &&value)
ReceiptFilter & WithIpFilter(ReceiptIpFilter &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ReceiptFilter & WithName(const char *value)
void SetName(const char *value)
Definition: ReceiptFilter.h:82
void SetIpFilter(const ReceiptIpFilter &value)
#define AWS_SES_API
Definition: SES_EXPORTS.h:37
JSON (JavaScript Object Notation).