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-ecs/include/aws/ecs/model/UpdateContainerAgentRequest.h

154 lines
6.1 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/ecs/ECS_EXPORTS.h>
#include <aws/ecs/ECSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ECS
{
namespace Model
{
/**
*/
class AWS_ECS_API UpdateContainerAgentRequest : public ECSRequest
{
public:
UpdateContainerAgentRequest();
// 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 "UpdateContainerAgent"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that your
* container instance is running on. If you do not specify a cluster, the default
* cluster is assumed.</p>
*/
inline const Aws::String& GetCluster() const{ return m_cluster; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that your
* container instance is running on. If you do not specify a cluster, the default
* cluster is assumed.</p>
*/
inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that your
* container instance is running on. If you do not specify a cluster, the default
* cluster is assumed.</p>
*/
inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that your
* container instance is running on. If you do not specify a cluster, the default
* cluster is assumed.</p>
*/
inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that your
* container instance is running on. If you do not specify a cluster, the default
* cluster is assumed.</p>
*/
inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that your
* container instance is running on. If you do not specify a cluster, the default
* cluster is assumed.</p>
*/
inline UpdateContainerAgentRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that your
* container instance is running on. If you do not specify a cluster, the default
* cluster is assumed.</p>
*/
inline UpdateContainerAgentRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that your
* container instance is running on. If you do not specify a cluster, the default
* cluster is assumed.</p>
*/
inline UpdateContainerAgentRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
/**
* <p>The container instance ID or full ARN entries for the container instance on
* which you would like to update the Amazon ECS container agent.</p>
*/
inline const Aws::String& GetContainerInstance() const{ return m_containerInstance; }
/**
* <p>The container instance ID or full ARN entries for the container instance on
* which you would like to update the Amazon ECS container agent.</p>
*/
inline bool ContainerInstanceHasBeenSet() const { return m_containerInstanceHasBeenSet; }
/**
* <p>The container instance ID or full ARN entries for the container instance on
* which you would like to update the Amazon ECS container agent.</p>
*/
inline void SetContainerInstance(const Aws::String& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = value; }
/**
* <p>The container instance ID or full ARN entries for the container instance on
* which you would like to update the Amazon ECS container agent.</p>
*/
inline void SetContainerInstance(Aws::String&& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = std::move(value); }
/**
* <p>The container instance ID or full ARN entries for the container instance on
* which you would like to update the Amazon ECS container agent.</p>
*/
inline void SetContainerInstance(const char* value) { m_containerInstanceHasBeenSet = true; m_containerInstance.assign(value); }
/**
* <p>The container instance ID or full ARN entries for the container instance on
* which you would like to update the Amazon ECS container agent.</p>
*/
inline UpdateContainerAgentRequest& WithContainerInstance(const Aws::String& value) { SetContainerInstance(value); return *this;}
/**
* <p>The container instance ID or full ARN entries for the container instance on
* which you would like to update the Amazon ECS container agent.</p>
*/
inline UpdateContainerAgentRequest& WithContainerInstance(Aws::String&& value) { SetContainerInstance(std::move(value)); return *this;}
/**
* <p>The container instance ID or full ARN entries for the container instance on
* which you would like to update the Amazon ECS container agent.</p>
*/
inline UpdateContainerAgentRequest& WithContainerInstance(const char* value) { SetContainerInstance(value); return *this;}
private:
Aws::String m_cluster;
bool m_clusterHasBeenSet;
Aws::String m_containerInstance;
bool m_containerInstanceHasBeenSet;
};
} // namespace Model
} // namespace ECS
} // namespace Aws