AWS SDK for C++  0.12.9
AWS SDK for C++
InvalidationSummary.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace CloudFront
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  InvalidationSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
54  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 
59  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
60 
64  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 
69  inline InvalidationSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
70 
74  inline InvalidationSummary& WithId(Aws::String&& value) { SetId(value); return *this;}
75 
79  inline InvalidationSummary& WithId(const char* value) { SetId(value); return *this;}
80 
81 
82  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
83 
84 
85  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
86 
87 
88  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
89 
90 
91  inline InvalidationSummary& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
92 
93 
94  inline InvalidationSummary& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(value); return *this;}
95 
99  inline const Aws::String& GetStatus() const{ return m_status; }
100 
104  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
105 
109  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
110 
114  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
115 
119  inline InvalidationSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
120 
124  inline InvalidationSummary& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
125 
129  inline InvalidationSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
130 
131  private:
132  Aws::String m_id;
133  bool m_idHasBeenSet;
134  Aws::Utils::DateTime m_createTime;
135  bool m_createTimeHasBeenSet;
136  Aws::String m_status;
137  bool m_statusHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace CloudFront
142 } // namespace Aws
InvalidationSummary & WithStatus(const Aws::String &value)
InvalidationSummary & WithCreateTime(const Aws::Utils::DateTime &value)
void SetCreateTime(Aws::Utils::DateTime &&value)
InvalidationSummary & WithId(const Aws::String &value)
InvalidationSummary & WithId(const char *value)
#define AWS_CLOUDFRONT_API
InvalidationSummary & WithCreateTime(Aws::Utils::DateTime &&value)
InvalidationSummary & WithStatus(Aws::String &&value)
const Aws::Utils::DateTime & GetCreateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
InvalidationSummary & WithStatus(const char *value)
void SetCreateTime(const Aws::Utils::DateTime &value)
InvalidationSummary & WithId(Aws::String &&value)
JSON (JavaScript Object Notation).