AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateAggregateConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/fsx/FSx_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FSx {
21namespace Model {
22
30 public:
31 AWS_FSX_API CreateAggregateConfiguration() = default;
35
37
41 inline const Aws::Vector<Aws::String>& GetAggregates() const { return m_aggregates; }
42 inline bool AggregatesHasBeenSet() const { return m_aggregatesHasBeenSet; }
43 template <typename AggregatesT = Aws::Vector<Aws::String>>
44 void SetAggregates(AggregatesT&& value) {
45 m_aggregatesHasBeenSet = true;
46 m_aggregates = std::forward<AggregatesT>(value);
47 }
48 template <typename AggregatesT = Aws::Vector<Aws::String>>
50 SetAggregates(std::forward<AggregatesT>(value));
51 return *this;
52 }
53 template <typename AggregatesT = Aws::String>
55 m_aggregatesHasBeenSet = true;
56 m_aggregates.emplace_back(std::forward<AggregatesT>(value));
57 return *this;
58 }
60
62
68 inline int GetConstituentsPerAggregate() const { return m_constituentsPerAggregate; }
69 inline bool ConstituentsPerAggregateHasBeenSet() const { return m_constituentsPerAggregateHasBeenSet; }
70 inline void SetConstituentsPerAggregate(int value) {
71 m_constituentsPerAggregateHasBeenSet = true;
72 m_constituentsPerAggregate = value;
73 }
76 return *this;
77 }
79 private:
80 Aws::Vector<Aws::String> m_aggregates;
81
82 int m_constituentsPerAggregate{0};
83 bool m_aggregatesHasBeenSet = false;
84 bool m_constituentsPerAggregateHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace FSx
89} // 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