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-identity/CognitoIdentity_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.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 CognitoIdentity 24 { 25 namespace Model 26 { 27 /** 28 * <p>Returned in response to a successful GetOpenIdToken request.</p><p><h3>See 29 * Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetOpenIdTokenResponse">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_COGNITOIDENTITY_API GetOpenIdTokenResult 34 { 35 public: 36 GetOpenIdTokenResult(); 37 GetOpenIdTokenResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 38 GetOpenIdTokenResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 39 40 41 /** 42 * <p>A unique identifier in the format REGION:GUID. Note that the IdentityId 43 * returned may not match the one passed on input.</p> 44 */ GetIdentityId()45 inline const Aws::String& GetIdentityId() const{ return m_identityId; } 46 47 /** 48 * <p>A unique identifier in the format REGION:GUID. Note that the IdentityId 49 * returned may not match the one passed on input.</p> 50 */ SetIdentityId(const Aws::String & value)51 inline void SetIdentityId(const Aws::String& value) { m_identityId = value; } 52 53 /** 54 * <p>A unique identifier in the format REGION:GUID. Note that the IdentityId 55 * returned may not match the one passed on input.</p> 56 */ SetIdentityId(Aws::String && value)57 inline void SetIdentityId(Aws::String&& value) { m_identityId = std::move(value); } 58 59 /** 60 * <p>A unique identifier in the format REGION:GUID. Note that the IdentityId 61 * returned may not match the one passed on input.</p> 62 */ SetIdentityId(const char * value)63 inline void SetIdentityId(const char* value) { m_identityId.assign(value); } 64 65 /** 66 * <p>A unique identifier in the format REGION:GUID. Note that the IdentityId 67 * returned may not match the one passed on input.</p> 68 */ WithIdentityId(const Aws::String & value)69 inline GetOpenIdTokenResult& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;} 70 71 /** 72 * <p>A unique identifier in the format REGION:GUID. Note that the IdentityId 73 * returned may not match the one passed on input.</p> 74 */ WithIdentityId(Aws::String && value)75 inline GetOpenIdTokenResult& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;} 76 77 /** 78 * <p>A unique identifier in the format REGION:GUID. Note that the IdentityId 79 * returned may not match the one passed on input.</p> 80 */ WithIdentityId(const char * value)81 inline GetOpenIdTokenResult& WithIdentityId(const char* value) { SetIdentityId(value); return *this;} 82 83 84 /** 85 * <p>An OpenID token, valid for 10 minutes.</p> 86 */ GetToken()87 inline const Aws::String& GetToken() const{ return m_token; } 88 89 /** 90 * <p>An OpenID token, valid for 10 minutes.</p> 91 */ SetToken(const Aws::String & value)92 inline void SetToken(const Aws::String& value) { m_token = value; } 93 94 /** 95 * <p>An OpenID token, valid for 10 minutes.</p> 96 */ SetToken(Aws::String && value)97 inline void SetToken(Aws::String&& value) { m_token = std::move(value); } 98 99 /** 100 * <p>An OpenID token, valid for 10 minutes.</p> 101 */ SetToken(const char * value)102 inline void SetToken(const char* value) { m_token.assign(value); } 103 104 /** 105 * <p>An OpenID token, valid for 10 minutes.</p> 106 */ WithToken(const Aws::String & value)107 inline GetOpenIdTokenResult& WithToken(const Aws::String& value) { SetToken(value); return *this;} 108 109 /** 110 * <p>An OpenID token, valid for 10 minutes.</p> 111 */ WithToken(Aws::String && value)112 inline GetOpenIdTokenResult& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} 113 114 /** 115 * <p>An OpenID token, valid for 10 minutes.</p> 116 */ WithToken(const char * value)117 inline GetOpenIdTokenResult& WithToken(const char* value) { SetToken(value); return *this;} 118 119 private: 120 121 Aws::String m_identityId; 122 123 Aws::String m_token; 124 }; 125 126 } // namespace Model 127 } // namespace CognitoIdentity 128 } // namespace Aws 129