AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EncryptionAlgorithmOptions.h
1
6#pragma once
7#include <aws/signer/Signer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/signer/model/EncryptionAlgorithm.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 signer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SIGNER_API EncryptionAlgorithmOptions() = default;
39 AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<EncryptionAlgorithm>& GetAllowedValues() const { return m_allowedValues; }
48 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
49 template<typename AllowedValuesT = Aws::Vector<EncryptionAlgorithm>>
50 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
51 template<typename AllowedValuesT = Aws::Vector<EncryptionAlgorithm>>
52 EncryptionAlgorithmOptions& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
53 inline EncryptionAlgorithmOptions& AddAllowedValues(EncryptionAlgorithm value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
55
57
60 inline EncryptionAlgorithm GetDefaultValue() const { return m_defaultValue; }
61 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
62 inline void SetDefaultValue(EncryptionAlgorithm value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
65 private:
66
68 bool m_allowedValuesHasBeenSet = false;
69
71 bool m_defaultValueHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace signer
76} // namespace Aws
AWS_SIGNER_API EncryptionAlgorithmOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
EncryptionAlgorithmOptions & WithDefaultValue(EncryptionAlgorithm value)
EncryptionAlgorithmOptions & WithAllowedValues(AllowedValuesT &&value)
AWS_SIGNER_API EncryptionAlgorithmOptions(Aws::Utils::Json::JsonView jsonValue)
EncryptionAlgorithmOptions & AddAllowedValues(EncryptionAlgorithm value)
const Aws::Vector< EncryptionAlgorithm > & GetAllowedValues() const
AWS_SIGNER_API EncryptionAlgorithmOptions()=default
AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue