AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateAggregateConfiguration.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 FSx
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_FSX_API CreateAggregateConfiguration() = default;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetAggregates() const { return m_aggregates; }
48 inline bool AggregatesHasBeenSet() const { return m_aggregatesHasBeenSet; }
49 template<typename AggregatesT = Aws::Vector<Aws::String>>
50 void SetAggregates(AggregatesT&& value) { m_aggregatesHasBeenSet = true; m_aggregates = std::forward<AggregatesT>(value); }
51 template<typename AggregatesT = Aws::Vector<Aws::String>>
52 CreateAggregateConfiguration& WithAggregates(AggregatesT&& value) { SetAggregates(std::forward<AggregatesT>(value)); return *this;}
53 template<typename AggregatesT = Aws::String>
54 CreateAggregateConfiguration& AddAggregates(AggregatesT&& value) { m_aggregatesHasBeenSet = true; m_aggregates.emplace_back(std::forward<AggregatesT>(value)); return *this; }
56
58
64 inline int GetConstituentsPerAggregate() const { return m_constituentsPerAggregate; }
65 inline bool ConstituentsPerAggregateHasBeenSet() const { return m_constituentsPerAggregateHasBeenSet; }
66 inline void SetConstituentsPerAggregate(int value) { m_constituentsPerAggregateHasBeenSet = true; m_constituentsPerAggregate = value; }
69 private:
70
71 Aws::Vector<Aws::String> m_aggregates;
72 bool m_aggregatesHasBeenSet = false;
73
74 int m_constituentsPerAggregate{0};
75 bool m_constituentsPerAggregateHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace FSx
80} // namespace Aws
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
CreateAggregateConfiguration & WithConstituentsPerAggregate(int value)
AWS_FSX_API CreateAggregateConfiguration(Aws::Utils::Json::JsonView jsonValue)
CreateAggregateConfiguration & WithAggregates(AggregatesT &&value)
CreateAggregateConfiguration & AddAggregates(AggregatesT &&value)
const Aws::Vector< Aws::String > & GetAggregates() const
AWS_FSX_API CreateAggregateConfiguration()=default
AWS_FSX_API CreateAggregateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue