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/UpdateServicePrimaryTaskSetRequest.h

198 lines
7.3 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 UpdateServicePrimaryTaskSetRequest : public ECSRequest
{
public:
UpdateServicePrimaryTaskSetRequest();
// 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 "UpdateServicePrimaryTaskSet"; }
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 hosts
* the service that the task set exists in.</p>
*/
inline const Aws::String& GetCluster() const{ return m_cluster; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts
* the service that the task set exists in.</p>
*/
inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts
* the service that the task set exists in.</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 hosts
* the service that the task set exists in.</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 hosts
* the service that the task set exists in.</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 hosts
* the service that the task set exists in.</p>
*/
inline UpdateServicePrimaryTaskSetRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts
* the service that the task set exists in.</p>
*/
inline UpdateServicePrimaryTaskSetRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
/**
* <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts
* the service that the task set exists in.</p>
*/
inline UpdateServicePrimaryTaskSetRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
/**
* <p>The short name or full Amazon Resource Name (ARN) of the service that the
* task set exists in.</p>
*/
inline const Aws::String& GetService() const{ return m_service; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the service that the
* task set exists in.</p>
*/
inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the service that the
* task set exists in.</p>
*/
inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the service that the
* task set exists in.</p>
*/
inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the service that the
* task set exists in.</p>
*/
inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the service that the
* task set exists in.</p>
*/
inline UpdateServicePrimaryTaskSetRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
/**
* <p>The short name or full Amazon Resource Name (ARN) of the service that the
* task set exists in.</p>
*/
inline UpdateServicePrimaryTaskSetRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
/**
* <p>The short name or full Amazon Resource Name (ARN) of the service that the
* task set exists in.</p>
*/
inline UpdateServicePrimaryTaskSetRequest& WithService(const char* value) { SetService(value); return *this;}
/**
* <p>The short name or full Amazon Resource Name (ARN) of the task set to set as
* the primary task set in the deployment.</p>
*/
inline const Aws::String& GetPrimaryTaskSet() const{ return m_primaryTaskSet; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the task set to set as
* the primary task set in the deployment.</p>
*/
inline bool PrimaryTaskSetHasBeenSet() const { return m_primaryTaskSetHasBeenSet; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the task set to set as
* the primary task set in the deployment.</p>
*/
inline void SetPrimaryTaskSet(const Aws::String& value) { m_primaryTaskSetHasBeenSet = true; m_primaryTaskSet = value; }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the task set to set as
* the primary task set in the deployment.</p>
*/
inline void SetPrimaryTaskSet(Aws::String&& value) { m_primaryTaskSetHasBeenSet = true; m_primaryTaskSet = std::move(value); }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the task set to set as
* the primary task set in the deployment.</p>
*/
inline void SetPrimaryTaskSet(const char* value) { m_primaryTaskSetHasBeenSet = true; m_primaryTaskSet.assign(value); }
/**
* <p>The short name or full Amazon Resource Name (ARN) of the task set to set as
* the primary task set in the deployment.</p>
*/
inline UpdateServicePrimaryTaskSetRequest& WithPrimaryTaskSet(const Aws::String& value) { SetPrimaryTaskSet(value); return *this;}
/**
* <p>The short name or full Amazon Resource Name (ARN) of the task set to set as
* the primary task set in the deployment.</p>
*/
inline UpdateServicePrimaryTaskSetRequest& WithPrimaryTaskSet(Aws::String&& value) { SetPrimaryTaskSet(std::move(value)); return *this;}
/**
* <p>The short name or full Amazon Resource Name (ARN) of the task set to set as
* the primary task set in the deployment.</p>
*/
inline UpdateServicePrimaryTaskSetRequest& WithPrimaryTaskSet(const char* value) { SetPrimaryTaskSet(value); return *this;}
private:
Aws::String m_cluster;
bool m_clusterHasBeenSet;
Aws::String m_service;
bool m_serviceHasBeenSet;
Aws::String m_primaryTaskSet;
bool m_primaryTaskSetHasBeenSet;
};
} // namespace Model
} // namespace ECS
} // namespace Aws