AWS SDK for C++  0.14.3
AWS SDK for C++
CloudFrontOriginAccessIdentitySummary.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 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
58  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 
68  inline CloudFrontOriginAccessIdentitySummary& WithId(const Aws::String& value) { SetId(value); return *this;}
69 
73  inline CloudFrontOriginAccessIdentitySummary& WithId(Aws::String&& value) { SetId(value); return *this;}
74 
78  inline CloudFrontOriginAccessIdentitySummary& WithId(const char* value) { SetId(value); return *this;}
79 
85  inline const Aws::String& GetS3CanonicalUserId() const{ return m_s3CanonicalUserId; }
86 
92  inline void SetS3CanonicalUserId(const Aws::String& value) { m_s3CanonicalUserIdHasBeenSet = true; m_s3CanonicalUserId = value; }
93 
99  inline void SetS3CanonicalUserId(Aws::String&& value) { m_s3CanonicalUserIdHasBeenSet = true; m_s3CanonicalUserId = value; }
100 
106  inline void SetS3CanonicalUserId(const char* value) { m_s3CanonicalUserIdHasBeenSet = true; m_s3CanonicalUserId.assign(value); }
107 
113  inline CloudFrontOriginAccessIdentitySummary& WithS3CanonicalUserId(const Aws::String& value) { SetS3CanonicalUserId(value); return *this;}
114 
120  inline CloudFrontOriginAccessIdentitySummary& WithS3CanonicalUserId(Aws::String&& value) { SetS3CanonicalUserId(value); return *this;}
121 
127  inline CloudFrontOriginAccessIdentitySummary& WithS3CanonicalUserId(const char* value) { SetS3CanonicalUserId(value); return *this;}
128 
133  inline const Aws::String& GetComment() const{ return m_comment; }
134 
139  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
140 
145  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
146 
151  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
152 
157  inline CloudFrontOriginAccessIdentitySummary& WithComment(const Aws::String& value) { SetComment(value); return *this;}
158 
163  inline CloudFrontOriginAccessIdentitySummary& WithComment(Aws::String&& value) { SetComment(value); return *this;}
164 
169  inline CloudFrontOriginAccessIdentitySummary& WithComment(const char* value) { SetComment(value); return *this;}
170 
171  private:
172  Aws::String m_id;
173  bool m_idHasBeenSet;
174  Aws::String m_s3CanonicalUserId;
175  bool m_s3CanonicalUserIdHasBeenSet;
176  Aws::String m_comment;
177  bool m_commentHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace CloudFront
182 } // namespace Aws
CloudFrontOriginAccessIdentitySummary & WithComment(Aws::String &&value)
CloudFrontOriginAccessIdentitySummary & WithComment(const char *value)
CloudFrontOriginAccessIdentitySummary & WithId(Aws::String &&value)
CloudFrontOriginAccessIdentitySummary & WithComment(const Aws::String &value)
#define AWS_CLOUDFRONT_API
CloudFrontOriginAccessIdentitySummary & WithId(const char *value)
CloudFrontOriginAccessIdentitySummary & WithS3CanonicalUserId(const char *value)
CloudFrontOriginAccessIdentitySummary & WithS3CanonicalUserId(Aws::String &&value)
CloudFrontOriginAccessIdentitySummary & WithS3CanonicalUserId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CloudFrontOriginAccessIdentitySummary & WithId(const Aws::String &value)
JSON (JavaScript Object Notation).