120 lines
3.3 KiB
C++
120 lines
3.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/batch/Batch_EXPORTS.h>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Batch
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>An object representing the attributes of a compute environment that can be
|
|
* updated.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeResourceUpdate">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_BATCH_API ComputeResourceUpdate
|
|
{
|
|
public:
|
|
ComputeResourceUpdate();
|
|
ComputeResourceUpdate(Aws::Utils::Json::JsonView jsonValue);
|
|
ComputeResourceUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The minimum number of Amazon EC2 vCPUs that an environment should
|
|
* maintain.</p>
|
|
*/
|
|
inline int GetMinvCpus() const{ return m_minvCpus; }
|
|
|
|
/**
|
|
* <p>The minimum number of Amazon EC2 vCPUs that an environment should
|
|
* maintain.</p>
|
|
*/
|
|
inline bool MinvCpusHasBeenSet() const { return m_minvCpusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The minimum number of Amazon EC2 vCPUs that an environment should
|
|
* maintain.</p>
|
|
*/
|
|
inline void SetMinvCpus(int value) { m_minvCpusHasBeenSet = true; m_minvCpus = value; }
|
|
|
|
/**
|
|
* <p>The minimum number of Amazon EC2 vCPUs that an environment should
|
|
* maintain.</p>
|
|
*/
|
|
inline ComputeResourceUpdate& WithMinvCpus(int value) { SetMinvCpus(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The maximum number of Amazon EC2 vCPUs that an environment can reach.</p>
|
|
*/
|
|
inline int GetMaxvCpus() const{ return m_maxvCpus; }
|
|
|
|
/**
|
|
* <p>The maximum number of Amazon EC2 vCPUs that an environment can reach.</p>
|
|
*/
|
|
inline bool MaxvCpusHasBeenSet() const { return m_maxvCpusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The maximum number of Amazon EC2 vCPUs that an environment can reach.</p>
|
|
*/
|
|
inline void SetMaxvCpus(int value) { m_maxvCpusHasBeenSet = true; m_maxvCpus = value; }
|
|
|
|
/**
|
|
* <p>The maximum number of Amazon EC2 vCPUs that an environment can reach.</p>
|
|
*/
|
|
inline ComputeResourceUpdate& WithMaxvCpus(int value) { SetMaxvCpus(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The desired number of Amazon EC2 vCPUS in the compute environment.</p>
|
|
*/
|
|
inline int GetDesiredvCpus() const{ return m_desiredvCpus; }
|
|
|
|
/**
|
|
* <p>The desired number of Amazon EC2 vCPUS in the compute environment.</p>
|
|
*/
|
|
inline bool DesiredvCpusHasBeenSet() const { return m_desiredvCpusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The desired number of Amazon EC2 vCPUS in the compute environment.</p>
|
|
*/
|
|
inline void SetDesiredvCpus(int value) { m_desiredvCpusHasBeenSet = true; m_desiredvCpus = value; }
|
|
|
|
/**
|
|
* <p>The desired number of Amazon EC2 vCPUS in the compute environment.</p>
|
|
*/
|
|
inline ComputeResourceUpdate& WithDesiredvCpus(int value) { SetDesiredvCpus(value); return *this;}
|
|
|
|
private:
|
|
|
|
int m_minvCpus;
|
|
bool m_minvCpusHasBeenSet;
|
|
|
|
int m_maxvCpus;
|
|
bool m_maxvCpusHasBeenSet;
|
|
|
|
int m_desiredvCpus;
|
|
bool m_desiredvCpusHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Batch
|
|
} // namespace Aws
|