AWS SDK for C++  0.14.3
AWS SDK for C++
ReceiptRuleSetMetadata.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 
44  {
45  public:
48  ReceiptRuleSetMetadata& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49 
50  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51  void OutputToStream(Aws::OStream& oStream, const char* location) const;
52 
59  inline const Aws::String& GetName() const{ return m_name; }
60 
67  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 
75  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
76 
83  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 
91  inline ReceiptRuleSetMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
92 
99  inline ReceiptRuleSetMetadata& WithName(Aws::String&& value) { SetName(value); return *this;}
100 
107  inline ReceiptRuleSetMetadata& WithName(const char* value) { SetName(value); return *this;}
108 
112  inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
113 
117  inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
118 
122  inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
123 
127  inline ReceiptRuleSetMetadata& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
128 
132  inline ReceiptRuleSetMetadata& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(value); return *this;}
133 
134  private:
135  Aws::String m_name;
136  bool m_nameHasBeenSet;
137  Aws::Utils::DateTime m_createdTimestamp;
138  bool m_createdTimestampHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace SES
143 } // namespace Aws
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ReceiptRuleSetMetadata & WithName(const Aws::String &value)
ReceiptRuleSetMetadata & WithName(const char *value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
ReceiptRuleSetMetadata & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
ReceiptRuleSetMetadata & WithName(Aws::String &&value)
ReceiptRuleSetMetadata & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetName(const Aws::String &value)
#define AWS_SES_API
Definition: SES_EXPORTS.h:37
JSON (JavaScript Object Notation).