AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
AliasOperations.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/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
31 public:
32 AWS_SAGEMAKER_API AliasOperations() = default;
33 AWS_SAGEMAKER_API AliasOperations(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<Aws::String>& GetAdd() const { return m_add; }
44 inline bool AddHasBeenSet() const { return m_addHasBeenSet; }
45 template <typename AddT = Aws::Vector<Aws::String>>
46 void SetAdd(AddT&& value) {
47 m_addHasBeenSet = true;
48 m_add = std::forward<AddT>(value);
49 }
50 template <typename AddT = Aws::Vector<Aws::String>>
51 AliasOperations& WithAdd(AddT&& value) {
52 SetAdd(std::forward<AddT>(value));
53 return *this;
54 }
55 template <typename AddT = Aws::String>
56 AliasOperations& AddAdd(AddT&& value) {
57 m_addHasBeenSet = true;
58 m_add.emplace_back(std::forward<AddT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<Aws::String>& GetRemove() const { return m_remove; }
68 inline bool RemoveHasBeenSet() const { return m_removeHasBeenSet; }
69 template <typename RemoveT = Aws::Vector<Aws::String>>
70 void SetRemove(RemoveT&& value) {
71 m_removeHasBeenSet = true;
72 m_remove = std::forward<RemoveT>(value);
73 }
74 template <typename RemoveT = Aws::Vector<Aws::String>>
75 AliasOperations& WithRemove(RemoveT&& value) {
76 SetRemove(std::forward<RemoveT>(value));
77 return *this;
78 }
79 template <typename RemoveT = Aws::String>
80 AliasOperations& AddRemove(RemoveT&& value) {
81 m_removeHasBeenSet = true;
82 m_remove.emplace_back(std::forward<RemoveT>(value));
83 return *this;
84 }
86 private:
88
90 bool m_addHasBeenSet = false;
91 bool m_removeHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace SageMaker
96} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetRemove() const
AliasOperations & WithRemove(RemoveT &&value)
AliasOperations & AddRemove(RemoveT &&value)
AWS_SAGEMAKER_API AliasOperations(Aws::Utils::Json::JsonView jsonValue)
AliasOperations & WithAdd(AddT &&value)
const Aws::Vector< Aws::String > & GetAdd() const
AWS_SAGEMAKER_API AliasOperations & operator=(Aws::Utils::Json::JsonView jsonValue)
AliasOperations & AddAdd(AddT &&value)
AWS_SAGEMAKER_API AliasOperations()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue