AWS SDK for C++  0.14.3
AWS SDK for C++
UnprocessedIdentityId.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 CognitoIdentity
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  UnprocessedIdentityId& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
50 
54  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
55 
59  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
60 
64  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
65 
69  inline UnprocessedIdentityId& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
70 
74  inline UnprocessedIdentityId& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
75 
79  inline UnprocessedIdentityId& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
80 
84  inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
85 
89  inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
90 
94  inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
95 
99  inline UnprocessedIdentityId& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
100 
104  inline UnprocessedIdentityId& WithErrorCode(ErrorCode&& value) { SetErrorCode(value); return *this;}
105 
106  private:
107  Aws::String m_identityId;
108  bool m_identityIdHasBeenSet;
109  ErrorCode m_errorCode;
110  bool m_errorCodeHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace CognitoIdentity
115 } // namespace Aws
UnprocessedIdentityId & WithIdentityId(Aws::String &&value)
UnprocessedIdentityId & WithIdentityId(const Aws::String &value)
UnprocessedIdentityId & WithErrorCode(const ErrorCode &value)
#define AWS_COGNITOIDENTITY_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UnprocessedIdentityId & WithErrorCode(ErrorCode &&value)
UnprocessedIdentityId & WithIdentityId(const char *value)
JSON (JavaScript Object Notation).