AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_BATCH_API ShareAttributes() = default;
39 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
54 inline const Aws::String& GetShareIdentifier() const { return m_shareIdentifier; }
55 inline bool ShareIdentifierHasBeenSet() const { return m_shareIdentifierHasBeenSet; }
56 template<typename ShareIdentifierT = Aws::String>
57 void SetShareIdentifier(ShareIdentifierT&& value) { m_shareIdentifierHasBeenSet = true; m_shareIdentifier = std::forward<ShareIdentifierT>(value); }
58 template<typename ShareIdentifierT = Aws::String>
59 ShareAttributes& WithShareIdentifier(ShareIdentifierT&& value) { SetShareIdentifier(std::forward<ShareIdentifierT>(value)); return *this;}
61
63
71 inline double GetWeightFactor() const { return m_weightFactor; }
72 inline bool WeightFactorHasBeenSet() const { return m_weightFactorHasBeenSet; }
73 inline void SetWeightFactor(double value) { m_weightFactorHasBeenSet = true; m_weightFactor = value; }
74 inline ShareAttributes& WithWeightFactor(double value) { SetWeightFactor(value); return *this;}
76 private:
77
78 Aws::String m_shareIdentifier;
79 bool m_shareIdentifierHasBeenSet = false;
80
81 double m_weightFactor{0.0};
82 bool m_weightFactorHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Batch
87} // 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