AWS SDK for C++  0.12.9
AWS SDK for C++
AuthorizationData.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/ecr/ECR_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ECR
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  AuthorizationData& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
51  inline const Aws::String& GetAuthorizationToken() const{ return m_authorizationToken; }
52 
59  inline void SetAuthorizationToken(const Aws::String& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = value; }
60 
67  inline void SetAuthorizationToken(Aws::String&& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = value; }
68 
75  inline void SetAuthorizationToken(const char* value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken.assign(value); }
76 
83  inline AuthorizationData& WithAuthorizationToken(const Aws::String& value) { SetAuthorizationToken(value); return *this;}
84 
91  inline AuthorizationData& WithAuthorizationToken(Aws::String&& value) { SetAuthorizationToken(value); return *this;}
92 
99  inline AuthorizationData& WithAuthorizationToken(const char* value) { SetAuthorizationToken(value); return *this;}
100 
105  inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; }
106 
111  inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
112 
117  inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
118 
123  inline AuthorizationData& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;}
124 
129  inline AuthorizationData& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(value); return *this;}
130 
137  inline const Aws::String& GetProxyEndpoint() const{ return m_proxyEndpoint; }
138 
145  inline void SetProxyEndpoint(const Aws::String& value) { m_proxyEndpointHasBeenSet = true; m_proxyEndpoint = value; }
146 
153  inline void SetProxyEndpoint(Aws::String&& value) { m_proxyEndpointHasBeenSet = true; m_proxyEndpoint = value; }
154 
161  inline void SetProxyEndpoint(const char* value) { m_proxyEndpointHasBeenSet = true; m_proxyEndpoint.assign(value); }
162 
169  inline AuthorizationData& WithProxyEndpoint(const Aws::String& value) { SetProxyEndpoint(value); return *this;}
170 
177  inline AuthorizationData& WithProxyEndpoint(Aws::String&& value) { SetProxyEndpoint(value); return *this;}
178 
185  inline AuthorizationData& WithProxyEndpoint(const char* value) { SetProxyEndpoint(value); return *this;}
186 
187  private:
188  Aws::String m_authorizationToken;
189  bool m_authorizationTokenHasBeenSet;
190  Aws::Utils::DateTime m_expiresAt;
191  bool m_expiresAtHasBeenSet;
192  Aws::String m_proxyEndpoint;
193  bool m_proxyEndpointHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace ECR
198 } // namespace Aws
AuthorizationData & WithProxyEndpoint(const char *value)
AuthorizationData & WithAuthorizationToken(Aws::String &&value)
void SetAuthorizationToken(const char *value)
const Aws::Utils::DateTime & GetExpiresAt() const
void SetAuthorizationToken(Aws::String &&value)
void SetProxyEndpoint(const Aws::String &value)
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:34
AuthorizationData & WithProxyEndpoint(const Aws::String &value)
void SetExpiresAt(Aws::Utils::DateTime &&value)
AuthorizationData & WithAuthorizationToken(const char *value)
void SetProxyEndpoint(const char *value)
const Aws::String & GetAuthorizationToken() const
AuthorizationData & WithProxyEndpoint(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetProxyEndpoint() const
AuthorizationData & WithExpiresAt(Aws::Utils::DateTime &&value)
void SetProxyEndpoint(Aws::String &&value)
AuthorizationData & WithExpiresAt(const Aws::Utils::DateTime &value)
AuthorizationData & WithAuthorizationToken(const Aws::String &value)
void SetExpiresAt(const Aws::Utils::DateTime &value)
void SetAuthorizationToken(const Aws::String &value)
JSON (JavaScript Object Notation).