AWS SDK for C++  0.14.3
AWS SDK for C++
CloudFrontOriginAccessIdentityConfig.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace CloudFront
29 {
30 namespace Model
31 {
32 
37  {
38  public:
42 
43  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44 
58  inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
59 
73  inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
74 
88  inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
89 
103  inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
104 
118  inline CloudFrontOriginAccessIdentityConfig& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
119 
133  inline CloudFrontOriginAccessIdentityConfig& WithCallerReference(Aws::String&& value) { SetCallerReference(value); return *this;}
134 
148  inline CloudFrontOriginAccessIdentityConfig& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
149 
153  inline const Aws::String& GetComment() const{ return m_comment; }
154 
158  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
159 
163  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
164 
168  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
169 
173  inline CloudFrontOriginAccessIdentityConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
174 
178  inline CloudFrontOriginAccessIdentityConfig& WithComment(Aws::String&& value) { SetComment(value); return *this;}
179 
183  inline CloudFrontOriginAccessIdentityConfig& WithComment(const char* value) { SetComment(value); return *this;}
184 
185  private:
186  Aws::String m_callerReference;
187  bool m_callerReferenceHasBeenSet;
188  Aws::String m_comment;
189  bool m_commentHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace CloudFront
194 } // namespace Aws
CloudFrontOriginAccessIdentityConfig & WithCallerReference(Aws::String &&value)
CloudFrontOriginAccessIdentityConfig & WithComment(const Aws::String &value)
#define AWS_CLOUDFRONT_API
CloudFrontOriginAccessIdentityConfig & WithComment(const char *value)
CloudFrontOriginAccessIdentityConfig & WithCallerReference(const char *value)
CloudFrontOriginAccessIdentityConfig & WithCallerReference(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CloudFrontOriginAccessIdentityConfig & WithComment(Aws::String &&value)
JSON (JavaScript Object Notation).