AWS SDK for C++  0.12.9
AWS SDK for C++
LoggingEnabled.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/s3/S3_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 S3
31 {
32 namespace Model
33 {
34 
36  {
37  public:
40  LoggingEnabled& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
52  inline const Aws::String& GetTargetBucket() const{ return m_targetBucket; }
53 
62  inline void SetTargetBucket(const Aws::String& value) { m_targetBucketHasBeenSet = true; m_targetBucket = value; }
63 
72  inline void SetTargetBucket(Aws::String&& value) { m_targetBucketHasBeenSet = true; m_targetBucket = value; }
73 
82  inline void SetTargetBucket(const char* value) { m_targetBucketHasBeenSet = true; m_targetBucket.assign(value); }
83 
92  inline LoggingEnabled& WithTargetBucket(const Aws::String& value) { SetTargetBucket(value); return *this;}
93 
102  inline LoggingEnabled& WithTargetBucket(Aws::String&& value) { SetTargetBucket(value); return *this;}
103 
112  inline LoggingEnabled& WithTargetBucket(const char* value) { SetTargetBucket(value); return *this;}
113 
114 
115  inline const Aws::Vector<TargetGrant>& GetTargetGrants() const{ return m_targetGrants; }
116 
117 
118  inline void SetTargetGrants(const Aws::Vector<TargetGrant>& value) { m_targetGrantsHasBeenSet = true; m_targetGrants = value; }
119 
120 
121  inline void SetTargetGrants(Aws::Vector<TargetGrant>&& value) { m_targetGrantsHasBeenSet = true; m_targetGrants = value; }
122 
123 
124  inline LoggingEnabled& WithTargetGrants(const Aws::Vector<TargetGrant>& value) { SetTargetGrants(value); return *this;}
125 
126 
127  inline LoggingEnabled& WithTargetGrants(Aws::Vector<TargetGrant>&& value) { SetTargetGrants(value); return *this;}
128 
129 
130  inline LoggingEnabled& AddTargetGrants(const TargetGrant& value) { m_targetGrantsHasBeenSet = true; m_targetGrants.push_back(value); return *this; }
131 
132 
133  inline LoggingEnabled& AddTargetGrants(TargetGrant&& value) { m_targetGrantsHasBeenSet = true; m_targetGrants.push_back(value); return *this; }
134 
139  inline const Aws::String& GetTargetPrefix() const{ return m_targetPrefix; }
140 
145  inline void SetTargetPrefix(const Aws::String& value) { m_targetPrefixHasBeenSet = true; m_targetPrefix = value; }
146 
151  inline void SetTargetPrefix(Aws::String&& value) { m_targetPrefixHasBeenSet = true; m_targetPrefix = value; }
152 
157  inline void SetTargetPrefix(const char* value) { m_targetPrefixHasBeenSet = true; m_targetPrefix.assign(value); }
158 
163  inline LoggingEnabled& WithTargetPrefix(const Aws::String& value) { SetTargetPrefix(value); return *this;}
164 
169  inline LoggingEnabled& WithTargetPrefix(Aws::String&& value) { SetTargetPrefix(value); return *this;}
170 
175  inline LoggingEnabled& WithTargetPrefix(const char* value) { SetTargetPrefix(value); return *this;}
176 
177  private:
178  Aws::String m_targetBucket;
179  bool m_targetBucketHasBeenSet;
180  Aws::Vector<TargetGrant> m_targetGrants;
181  bool m_targetGrantsHasBeenSet;
182  Aws::String m_targetPrefix;
183  bool m_targetPrefixHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace S3
188 } // namespace Aws
LoggingEnabled & WithTargetGrants(const Aws::Vector< TargetGrant > &value)
LoggingEnabled & WithTargetPrefix(Aws::String &&value)
void SetTargetBucket(const char *value)
const Aws::Vector< TargetGrant > & GetTargetGrants() const
void SetTargetGrants(const Aws::Vector< TargetGrant > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
void SetTargetBucket(const Aws::String &value)
void SetTargetPrefix(Aws::String &&value)
void SetTargetBucket(Aws::String &&value)
void SetTargetGrants(Aws::Vector< TargetGrant > &&value)
const Aws::String & GetTargetBucket() const
void SetTargetPrefix(const char *value)
LoggingEnabled & WithTargetPrefix(const char *value)
void SetTargetPrefix(const Aws::String &value)
LoggingEnabled & AddTargetGrants(const TargetGrant &value)
LoggingEnabled & WithTargetPrefix(const Aws::String &value)
LoggingEnabled & WithTargetBucket(Aws::String &&value)
LoggingEnabled & WithTargetBucket(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LoggingEnabled & AddTargetGrants(TargetGrant &&value)
const Aws::String & GetTargetPrefix() const
LoggingEnabled & WithTargetGrants(Aws::Vector< TargetGrant > &&value)
LoggingEnabled & WithTargetBucket(const Aws::String &value)
JSON (JavaScript Object Notation).