AWS SDK for C++  0.14.3
AWS SDK for C++
S3Location.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 Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace GameLift
29 {
30 namespace Model
31 {
32 
41  {
42  public:
43  S3Location();
44  S3Location(const Aws::Utils::Json::JsonValue& jsonValue);
45  S3Location& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetBucket() const{ return m_bucket; }
52 
56  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
57 
61  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
62 
66  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
67 
71  inline S3Location& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
72 
76  inline S3Location& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
77 
81  inline S3Location& WithBucket(const char* value) { SetBucket(value); return *this;}
82 
86  inline const Aws::String& GetKey() const{ return m_key; }
87 
91  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
92 
96  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
97 
101  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
102 
106  inline S3Location& WithKey(const Aws::String& value) { SetKey(value); return *this;}
107 
111  inline S3Location& WithKey(Aws::String&& value) { SetKey(value); return *this;}
112 
116  inline S3Location& WithKey(const char* value) { SetKey(value); return *this;}
117 
122  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
123 
128  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
129 
134  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
135 
140  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
141 
146  inline S3Location& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
147 
152  inline S3Location& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
153 
158  inline S3Location& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
159 
160  private:
161  Aws::String m_bucket;
162  bool m_bucketHasBeenSet;
163  Aws::String m_key;
164  bool m_keyHasBeenSet;
165  Aws::String m_roleArn;
166  bool m_roleArnHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace GameLift
171 } // namespace Aws
void SetKey(const char *value)
Definition: S3Location.h:101
S3Location & WithBucket(const Aws::String &value)
Definition: S3Location.h:71
S3Location & WithBucket(const char *value)
Definition: S3Location.h:81
S3Location & WithBucket(Aws::String &&value)
Definition: S3Location.h:76
const Aws::String & GetRoleArn() const
Definition: S3Location.h:122
#define AWS_GAMELIFT_API
S3Location & WithKey(const char *value)
Definition: S3Location.h:116
S3Location & WithRoleArn(const char *value)
Definition: S3Location.h:158
void SetBucket(const Aws::String &value)
Definition: S3Location.h:56
void SetRoleArn(const char *value)
Definition: S3Location.h:140
S3Location & WithKey(const Aws::String &value)
Definition: S3Location.h:106
S3Location & WithRoleArn(Aws::String &&value)
Definition: S3Location.h:152
const Aws::String & GetBucket() const
Definition: S3Location.h:51
void SetRoleArn(Aws::String &&value)
Definition: S3Location.h:134
const Aws::String & GetKey() const
Definition: S3Location.h:86
void SetKey(const Aws::String &value)
Definition: S3Location.h:91
void SetKey(Aws::String &&value)
Definition: S3Location.h:96
S3Location & WithKey(Aws::String &&value)
Definition: S3Location.h:111
void SetBucket(const char *value)
Definition: S3Location.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetBucket(Aws::String &&value)
Definition: S3Location.h:61
S3Location & WithRoleArn(const Aws::String &value)
Definition: S3Location.h:146
JSON (JavaScript Object Notation).
void SetRoleArn(const Aws::String &value)
Definition: S3Location.h:128