AWS SDK for C++  0.14.3
AWS SDK for C++
InvalidationBatch.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  InvalidationBatch& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
54  inline const Paths& GetPaths() const{ return m_paths; }
55 
64  inline void SetPaths(const Paths& value) { m_pathsHasBeenSet = true; m_paths = value; }
65 
74  inline void SetPaths(Paths&& value) { m_pathsHasBeenSet = true; m_paths = value; }
75 
84  inline InvalidationBatch& WithPaths(const Paths& value) { SetPaths(value); return *this;}
85 
94  inline InvalidationBatch& WithPaths(Paths&& value) { SetPaths(value); return *this;}
95 
107  inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
108 
120  inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
121 
133  inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
134 
146  inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
147 
159  inline InvalidationBatch& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
160 
172  inline InvalidationBatch& WithCallerReference(Aws::String&& value) { SetCallerReference(value); return *this;}
173 
185  inline InvalidationBatch& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
186 
187  private:
188  Paths m_paths;
189  bool m_pathsHasBeenSet;
190  Aws::String m_callerReference;
191  bool m_callerReferenceHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace CloudFront
196 } // namespace Aws
const Aws::String & GetCallerReference() const
void SetCallerReference(const Aws::String &value)
InvalidationBatch & WithCallerReference(Aws::String &&value)
InvalidationBatch & WithPaths(const Paths &value)
#define AWS_CLOUDFRONT_API
void SetCallerReference(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
InvalidationBatch & WithCallerReference(const char *value)
InvalidationBatch & WithCallerReference(const Aws::String &value)
InvalidationBatch & WithPaths(Paths &&value)
JSON (JavaScript Object Notation).