This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-cognito-idp/include/aws/cognito-idp/model/GetDeviceRequest.h

133 lines
3.9 KiB
C
Raw Normal View History

/**
* 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
{
/**
* <p>Represents the request to get the device.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDeviceRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API GetDeviceRequest : public CognitoIdentityProviderRequest
{
public:
GetDeviceRequest();
// 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 "GetDevice"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The device key.</p>
*/
inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; }
/**
* <p>The device key.</p>
*/
inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = std::move(value); }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); }
/**
* <p>The device key.</p>
*/
inline GetDeviceRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;}
/**
* <p>The device key.</p>
*/
inline GetDeviceRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(std::move(value)); return *this;}
/**
* <p>The device key.</p>
*/
inline GetDeviceRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;}
/**
* <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 GetDeviceRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
/**
* <p>The access token.</p>
*/
inline GetDeviceRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
/**
* <p>The access token.</p>
*/
inline GetDeviceRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
private:
Aws::String m_deviceKey;
bool m_deviceKeyHasBeenSet;
Aws::String m_accessToken;
bool m_accessTokenHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws