AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
CroppingConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/elementalinference/ElementalInference_EXPORTS.h>
9#include <aws/elementalinference/model/TemplateGroup.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ElementalInference {
21namespace Model {
22
30 public:
31 AWS_ELEMENTALINFERENCE_API CroppingConfig() = default;
32 AWS_ELEMENTALINFERENCE_API CroppingConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ELEMENTALINFERENCE_API CroppingConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<TemplateGroup>& GetTemplateGroups() const { return m_templateGroups; }
43 inline bool TemplateGroupsHasBeenSet() const { return m_templateGroupsHasBeenSet; }
44 template <typename TemplateGroupsT = Aws::Vector<TemplateGroup>>
45 void SetTemplateGroups(TemplateGroupsT&& value) {
46 m_templateGroupsHasBeenSet = true;
47 m_templateGroups = std::forward<TemplateGroupsT>(value);
48 }
49 template <typename TemplateGroupsT = Aws::Vector<TemplateGroup>>
50 CroppingConfig& WithTemplateGroups(TemplateGroupsT&& value) {
51 SetTemplateGroups(std::forward<TemplateGroupsT>(value));
52 return *this;
53 }
54 template <typename TemplateGroupsT = TemplateGroup>
55 CroppingConfig& AddTemplateGroups(TemplateGroupsT&& value) {
56 m_templateGroupsHasBeenSet = true;
57 m_templateGroups.emplace_back(std::forward<TemplateGroupsT>(value));
58 return *this;
59 }
61 private:
62 Aws::Vector<TemplateGroup> m_templateGroups;
63 bool m_templateGroupsHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace ElementalInference
68} // namespace Aws
CroppingConfig & AddTemplateGroups(TemplateGroupsT &&value)
AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTemplateGroups(TemplateGroupsT &&value)
AWS_ELEMENTALINFERENCE_API CroppingConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_ELEMENTALINFERENCE_API CroppingConfig()=default
const Aws::Vector< TemplateGroup > & GetTemplateGroups() const
CroppingConfig & WithTemplateGroups(TemplateGroupsT &&value)
AWS_ELEMENTALINFERENCE_API CroppingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue