1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8 #include <aws/cognito-idp/model/UserType.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20   class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace CognitoIdentityProvider
24 {
25 namespace Model
26 {
27   /**
28    * <p>Represents the response from the server to the request to create the
29    * user.</p><p><h3>See Also:</h3>   <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserResponse">AWS
31    * API Reference</a></p>
32    */
33   class AWS_COGNITOIDENTITYPROVIDER_API AdminCreateUserResult
34   {
35   public:
36     AdminCreateUserResult();
37     AdminCreateUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
38     AdminCreateUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
39 
40 
41     /**
42      * <p>The newly created user.</p>
43      */
GetUser()44     inline const UserType& GetUser() const{ return m_user; }
45 
46     /**
47      * <p>The newly created user.</p>
48      */
SetUser(const UserType & value)49     inline void SetUser(const UserType& value) { m_user = value; }
50 
51     /**
52      * <p>The newly created user.</p>
53      */
SetUser(UserType && value)54     inline void SetUser(UserType&& value) { m_user = std::move(value); }
55 
56     /**
57      * <p>The newly created user.</p>
58      */
WithUser(const UserType & value)59     inline AdminCreateUserResult& WithUser(const UserType& value) { SetUser(value); return *this;}
60 
61     /**
62      * <p>The newly created user.</p>
63      */
WithUser(UserType && value)64     inline AdminCreateUserResult& WithUser(UserType&& value) { SetUser(std::move(value)); return *this;}
65 
66   private:
67 
68     UserType m_user;
69   };
70 
71 } // namespace Model
72 } // namespace CognitoIdentityProvider
73 } // namespace Aws
74