AWS SDK for C++  0.14.3
AWS SDK for C++
S3Resource.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 Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace Snowball
30 {
31 namespace Model
32 {
33 
43  {
44  public:
45  S3Resource();
46  S3Resource(const Aws::Utils::Json::JsonValue& jsonValue);
47  S3Resource& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
53  inline const Aws::String& GetBucketArn() const{ return m_bucketArn; }
54 
58  inline void SetBucketArn(const Aws::String& value) { m_bucketArnHasBeenSet = true; m_bucketArn = value; }
59 
63  inline void SetBucketArn(Aws::String&& value) { m_bucketArnHasBeenSet = true; m_bucketArn = value; }
64 
68  inline void SetBucketArn(const char* value) { m_bucketArnHasBeenSet = true; m_bucketArn.assign(value); }
69 
73  inline S3Resource& WithBucketArn(const Aws::String& value) { SetBucketArn(value); return *this;}
74 
78  inline S3Resource& WithBucketArn(Aws::String&& value) { SetBucketArn(value); return *this;}
79 
83  inline S3Resource& WithBucketArn(const char* value) { SetBucketArn(value); return *this;}
84 
91  inline const KeyRange& GetKeyRange() const{ return m_keyRange; }
92 
99  inline void SetKeyRange(const KeyRange& value) { m_keyRangeHasBeenSet = true; m_keyRange = value; }
100 
107  inline void SetKeyRange(KeyRange&& value) { m_keyRangeHasBeenSet = true; m_keyRange = value; }
108 
115  inline S3Resource& WithKeyRange(const KeyRange& value) { SetKeyRange(value); return *this;}
116 
123  inline S3Resource& WithKeyRange(KeyRange&& value) { SetKeyRange(value); return *this;}
124 
125  private:
126  Aws::String m_bucketArn;
127  bool m_bucketArnHasBeenSet;
128  KeyRange m_keyRange;
129  bool m_keyRangeHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace Snowball
134 } // namespace Aws
S3Resource & WithBucketArn(const Aws::String &value)
Definition: S3Resource.h:73
void SetKeyRange(KeyRange &&value)
Definition: S3Resource.h:107
S3Resource & WithBucketArn(Aws::String &&value)
Definition: S3Resource.h:78
void SetKeyRange(const KeyRange &value)
Definition: S3Resource.h:99
S3Resource & WithKeyRange(const KeyRange &value)
Definition: S3Resource.h:115
void SetBucketArn(const char *value)
Definition: S3Resource.h:68
S3Resource & WithBucketArn(const char *value)
Definition: S3Resource.h:83
#define AWS_SNOWBALL_API
void SetBucketArn(const Aws::String &value)
Definition: S3Resource.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const KeyRange & GetKeyRange() const
Definition: S3Resource.h:91
const Aws::String & GetBucketArn() const
Definition: S3Resource.h:53
S3Resource & WithKeyRange(KeyRange &&value)
Definition: S3Resource.h:123
void SetBucketArn(Aws::String &&value)
Definition: S3Resource.h:63
JSON (JavaScript Object Notation).