130 lines
4.3 KiB
C++
130 lines
4.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
|
|
#include <aws/servicediscovery/ServiceDiscoveryRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace ServiceDiscovery
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_SERVICEDISCOVERY_API GetInstanceRequest : public ServiceDiscoveryRequest
|
|
{
|
|
public:
|
|
GetInstanceRequest();
|
|
|
|
// 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 "GetInstance"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The ID of the service that the instance is associated with.</p>
|
|
*/
|
|
inline const Aws::String& GetServiceId() const{ return m_serviceId; }
|
|
|
|
/**
|
|
* <p>The ID of the service that the instance is associated with.</p>
|
|
*/
|
|
inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the service that the instance is associated with.</p>
|
|
*/
|
|
inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the service that the instance is associated with.</p>
|
|
*/
|
|
inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the service that the instance is associated with.</p>
|
|
*/
|
|
inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the service that the instance is associated with.</p>
|
|
*/
|
|
inline GetInstanceRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the service that the instance is associated with.</p>
|
|
*/
|
|
inline GetInstanceRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the service that the instance is associated with.</p>
|
|
*/
|
|
inline GetInstanceRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the instance that you want to get information about.</p>
|
|
*/
|
|
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
|
|
|
|
/**
|
|
* <p>The ID of the instance that you want to get information about.</p>
|
|
*/
|
|
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the instance that you want to get information about.</p>
|
|
*/
|
|
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the instance that you want to get information about.</p>
|
|
*/
|
|
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the instance that you want to get information about.</p>
|
|
*/
|
|
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the instance that you want to get information about.</p>
|
|
*/
|
|
inline GetInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the instance that you want to get information about.</p>
|
|
*/
|
|
inline GetInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the instance that you want to get information about.</p>
|
|
*/
|
|
inline GetInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_serviceId;
|
|
bool m_serviceIdHasBeenSet;
|
|
|
|
Aws::String m_instanceId;
|
|
bool m_instanceIdHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ServiceDiscovery
|
|
} // namespace Aws
|