AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FairsharePolicy.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/batch/model/ShareAttributes.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Batch
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BATCH_API FairsharePolicy();
38 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
49 inline int GetShareDecaySeconds() const{ return m_shareDecaySeconds; }
50 inline bool ShareDecaySecondsHasBeenSet() const { return m_shareDecaySecondsHasBeenSet; }
51 inline void SetShareDecaySeconds(int value) { m_shareDecaySecondsHasBeenSet = true; m_shareDecaySeconds = value; }
52 inline FairsharePolicy& WithShareDecaySeconds(int value) { SetShareDecaySeconds(value); return *this;}
54
56
71 inline int GetComputeReservation() const{ return m_computeReservation; }
72 inline bool ComputeReservationHasBeenSet() const { return m_computeReservationHasBeenSet; }
73 inline void SetComputeReservation(int value) { m_computeReservationHasBeenSet = true; m_computeReservation = value; }
74 inline FairsharePolicy& WithComputeReservation(int value) { SetComputeReservation(value); return *this;}
76
78
83 inline const Aws::Vector<ShareAttributes>& GetShareDistribution() const{ return m_shareDistribution; }
84 inline bool ShareDistributionHasBeenSet() const { return m_shareDistributionHasBeenSet; }
85 inline void SetShareDistribution(const Aws::Vector<ShareAttributes>& value) { m_shareDistributionHasBeenSet = true; m_shareDistribution = value; }
86 inline void SetShareDistribution(Aws::Vector<ShareAttributes>&& value) { m_shareDistributionHasBeenSet = true; m_shareDistribution = std::move(value); }
89 inline FairsharePolicy& AddShareDistribution(const ShareAttributes& value) { m_shareDistributionHasBeenSet = true; m_shareDistribution.push_back(value); return *this; }
90 inline FairsharePolicy& AddShareDistribution(ShareAttributes&& value) { m_shareDistributionHasBeenSet = true; m_shareDistribution.push_back(std::move(value)); return *this; }
92 private:
93
94 int m_shareDecaySeconds;
95 bool m_shareDecaySecondsHasBeenSet = false;
96
97 int m_computeReservation;
98 bool m_computeReservationHasBeenSet = false;
99
100 Aws::Vector<ShareAttributes> m_shareDistribution;
101 bool m_shareDistributionHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Batch
106} // namespace Aws
FairsharePolicy & WithComputeReservation(int value)
AWS_BATCH_API FairsharePolicy(Aws::Utils::Json::JsonView jsonValue)
FairsharePolicy & WithShareDecaySeconds(int value)
AWS_BATCH_API FairsharePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetShareDistribution(Aws::Vector< ShareAttributes > &&value)
void SetShareDistribution(const Aws::Vector< ShareAttributes > &value)
FairsharePolicy & AddShareDistribution(ShareAttributes &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
FairsharePolicy & WithShareDistribution(Aws::Vector< ShareAttributes > &&value)
const Aws::Vector< ShareAttributes > & GetShareDistribution() const
FairsharePolicy & AddShareDistribution(const ShareAttributes &value)
FairsharePolicy & WithShareDistribution(const Aws::Vector< ShareAttributes > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue