AWS SDK for C++  0.14.3
AWS SDK for C++
Destination.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace S3
30 {
31 namespace Model
32 {
33 
35  {
36  public:
37  Destination();
38  Destination(const Aws::Utils::Xml::XmlNode& xmlNode);
39  Destination& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40 
41  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42 
47  inline const Aws::String& GetBucket() const{ return m_bucket; }
48 
53  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
54 
59  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
60 
65  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
66 
71  inline Destination& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
72 
77  inline Destination& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
78 
83  inline Destination& WithBucket(const char* value) { SetBucket(value); return *this;}
84 
88  inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
89 
93  inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
94 
98  inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
99 
103  inline Destination& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
104 
108  inline Destination& WithStorageClass(StorageClass&& value) { SetStorageClass(value); return *this;}
109 
110  private:
111  Aws::String m_bucket;
112  bool m_bucketHasBeenSet;
113  StorageClass m_storageClass;
114  bool m_storageClassHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace S3
119 } // namespace Aws
void SetStorageClass(StorageClass &&value)
Definition: Destination.h:98
Destination & WithStorageClass(StorageClass &&value)
Definition: Destination.h:108
void SetBucket(const Aws::String &value)
Definition: Destination.h:53
Destination & WithBucket(const char *value)
Definition: Destination.h:83
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
void SetStorageClass(const StorageClass &value)
Definition: Destination.h:93
void SetBucket(Aws::String &&value)
Definition: Destination.h:59
Destination & WithStorageClass(const StorageClass &value)
Definition: Destination.h:103
Destination & WithBucket(const Aws::String &value)
Definition: Destination.h:71
const StorageClass & GetStorageClass() const
Definition: Destination.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Destination & WithBucket(Aws::String &&value)
Definition: Destination.h:77
const Aws::String & GetBucket() const
Definition: Destination.h:47
void SetBucket(const char *value)
Definition: Destination.h:65
JSON (JavaScript Object Notation).