AWS SDK for C++  0.12.9
AWS SDK for C++
AwsCredentials.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 
40  {
41  public:
44  AwsCredentials& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
51 
55  inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
56 
60  inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
61 
65  inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
66 
70  inline AwsCredentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
71 
75  inline AwsCredentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(value); return *this;}
76 
80  inline AwsCredentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
81 
85  inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
86 
90  inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
91 
95  inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
96 
100  inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
101 
105  inline AwsCredentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
106 
110  inline AwsCredentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(value); return *this;}
111 
115  inline AwsCredentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
116 
120  inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
121 
125  inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
126 
130  inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
131 
135  inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
136 
140  inline AwsCredentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
141 
145  inline AwsCredentials& WithSessionToken(Aws::String&& value) { SetSessionToken(value); return *this;}
146 
150  inline AwsCredentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
151 
152  private:
153  Aws::String m_accessKeyId;
154  bool m_accessKeyIdHasBeenSet;
155  Aws::String m_secretAccessKey;
156  bool m_secretAccessKeyHasBeenSet;
157  Aws::String m_sessionToken;
158  bool m_sessionTokenHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace GameLift
163 } // namespace Aws
#define AWS_GAMELIFT_API
void SetSessionToken(const Aws::String &value)
void SetSessionToken(Aws::String &&value)
void SetAccessKeyId(const char *value)
void SetSecretAccessKey(const Aws::String &value)
AwsCredentials & WithAccessKeyId(const char *value)
AwsCredentials & WithSecretAccessKey(const Aws::String &value)
AwsCredentials & WithAccessKeyId(const Aws::String &value)
void SetSecretAccessKey(const char *value)
void SetAccessKeyId(Aws::String &&value)
AwsCredentials & WithSecretAccessKey(const char *value)
const Aws::String & GetSecretAccessKey() const
const Aws::String & GetAccessKeyId() const
void SetSecretAccessKey(Aws::String &&value)
void SetSessionToken(const char *value)
const Aws::String & GetSessionToken() const
AwsCredentials & WithSecretAccessKey(Aws::String &&value)
AwsCredentials & WithSessionToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAccessKeyId(const Aws::String &value)
AwsCredentials & WithSessionToken(const Aws::String &value)
AwsCredentials & WithAccessKeyId(Aws::String &&value)
AwsCredentials & WithSessionToken(const char *value)
JSON (JavaScript Object Notation).