AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ShareAttributes.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Batch {
20namespace Model {
21
30 public:
31 AWS_BATCH_API ShareAttributes() = default;
34 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
48 inline const Aws::String& GetShareIdentifier() const { return m_shareIdentifier; }
49 inline bool ShareIdentifierHasBeenSet() const { return m_shareIdentifierHasBeenSet; }
50 template <typename ShareIdentifierT = Aws::String>
51 void SetShareIdentifier(ShareIdentifierT&& value) {
52 m_shareIdentifierHasBeenSet = true;
53 m_shareIdentifier = std::forward<ShareIdentifierT>(value);
54 }
55 template <typename ShareIdentifierT = Aws::String>
56 ShareAttributes& WithShareIdentifier(ShareIdentifierT&& value) {
57 SetShareIdentifier(std::forward<ShareIdentifierT>(value));
58 return *this;
59 }
61
63
71 inline double GetWeightFactor() const { return m_weightFactor; }
72 inline bool WeightFactorHasBeenSet() const { return m_weightFactorHasBeenSet; }
73 inline void SetWeightFactor(double value) {
74 m_weightFactorHasBeenSet = true;
75 m_weightFactor = value;
76 }
77 inline ShareAttributes& WithWeightFactor(double value) {
78 SetWeightFactor(value);
79 return *this;
80 }
82 private:
83 Aws::String m_shareIdentifier;
84
85 double m_weightFactor{0.0};
86 bool m_shareIdentifierHasBeenSet = false;
87 bool m_weightFactorHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Batch
92} // namespace Aws
ShareAttributes & WithShareIdentifier(ShareIdentifierT &&value)
void SetShareIdentifier(ShareIdentifierT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API ShareAttributes()=default
const Aws::String & GetShareIdentifier() const
AWS_BATCH_API ShareAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ShareAttributes(Aws::Utils::Json::JsonView jsonValue)
ShareAttributes & WithWeightFactor(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue