146 lines
5.0 KiB
C++
146 lines
5.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
|
|
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace CognitoIdentityProvider
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_COGNITOIDENTITYPROVIDER_API AssociateSoftwareTokenRequest : public CognitoIdentityProviderRequest
|
|
{
|
|
public:
|
|
AssociateSoftwareTokenRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "AssociateSoftwareToken"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The access token.</p>
|
|
*/
|
|
inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
|
|
|
|
/**
|
|
* <p>The access token.</p>
|
|
*/
|
|
inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The access token.</p>
|
|
*/
|
|
inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
|
|
|
|
/**
|
|
* <p>The access token.</p>
|
|
*/
|
|
inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>The access token.</p>
|
|
*/
|
|
inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
|
|
|
|
/**
|
|
* <p>The access token.</p>
|
|
*/
|
|
inline AssociateSoftwareTokenRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>The access token.</p>
|
|
*/
|
|
inline AssociateSoftwareTokenRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The access token.</p>
|
|
*/
|
|
inline AssociateSoftwareTokenRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The session which should be passed both ways in challenge-response calls to
|
|
* the service. This allows authentication of the user as part of the MFA setup
|
|
* process.</p>
|
|
*/
|
|
inline const Aws::String& GetSession() const{ return m_session; }
|
|
|
|
/**
|
|
* <p>The session which should be passed both ways in challenge-response calls to
|
|
* the service. This allows authentication of the user as part of the MFA setup
|
|
* process.</p>
|
|
*/
|
|
inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The session which should be passed both ways in challenge-response calls to
|
|
* the service. This allows authentication of the user as part of the MFA setup
|
|
* process.</p>
|
|
*/
|
|
inline void SetSession(const Aws::String& value) { m_sessionHasBeenSet = true; m_session = value; }
|
|
|
|
/**
|
|
* <p>The session which should be passed both ways in challenge-response calls to
|
|
* the service. This allows authentication of the user as part of the MFA setup
|
|
* process.</p>
|
|
*/
|
|
inline void SetSession(Aws::String&& value) { m_sessionHasBeenSet = true; m_session = std::move(value); }
|
|
|
|
/**
|
|
* <p>The session which should be passed both ways in challenge-response calls to
|
|
* the service. This allows authentication of the user as part of the MFA setup
|
|
* process.</p>
|
|
*/
|
|
inline void SetSession(const char* value) { m_sessionHasBeenSet = true; m_session.assign(value); }
|
|
|
|
/**
|
|
* <p>The session which should be passed both ways in challenge-response calls to
|
|
* the service. This allows authentication of the user as part of the MFA setup
|
|
* process.</p>
|
|
*/
|
|
inline AssociateSoftwareTokenRequest& WithSession(const Aws::String& value) { SetSession(value); return *this;}
|
|
|
|
/**
|
|
* <p>The session which should be passed both ways in challenge-response calls to
|
|
* the service. This allows authentication of the user as part of the MFA setup
|
|
* process.</p>
|
|
*/
|
|
inline AssociateSoftwareTokenRequest& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The session which should be passed both ways in challenge-response calls to
|
|
* the service. This allows authentication of the user as part of the MFA setup
|
|
* process.</p>
|
|
*/
|
|
inline AssociateSoftwareTokenRequest& WithSession(const char* value) { SetSession(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_accessToken;
|
|
bool m_accessTokenHasBeenSet;
|
|
|
|
Aws::String m_session;
|
|
bool m_sessionHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CognitoIdentityProvider
|
|
} // namespace Aws
|