AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
HashAlgorithmOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/signer/Signer_EXPORTS.h>
9#include <aws/signer/model/HashAlgorithm.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace signer {
21namespace Model {
22
30 public:
31 AWS_SIGNER_API HashAlgorithmOptions() = default;
34 AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<HashAlgorithm>& GetAllowedValues() const { return m_allowedValues; }
41 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
42 template <typename AllowedValuesT = Aws::Vector<HashAlgorithm>>
43 void SetAllowedValues(AllowedValuesT&& value) {
44 m_allowedValuesHasBeenSet = true;
45 m_allowedValues = std::forward<AllowedValuesT>(value);
46 }
47 template <typename AllowedValuesT = Aws::Vector<HashAlgorithm>>
48 HashAlgorithmOptions& WithAllowedValues(AllowedValuesT&& value) {
49 SetAllowedValues(std::forward<AllowedValuesT>(value));
50 return *this;
51 }
53 m_allowedValuesHasBeenSet = true;
54 m_allowedValues.push_back(value);
55 return *this;
56 }
58
60
63 inline HashAlgorithm GetDefaultValue() const { return m_defaultValue; }
64 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
65 inline void SetDefaultValue(HashAlgorithm value) {
66 m_defaultValueHasBeenSet = true;
67 m_defaultValue = value;
68 }
70 SetDefaultValue(value);
71 return *this;
72 }
74 private:
75 Aws::Vector<HashAlgorithm> m_allowedValues;
76
78 bool m_allowedValuesHasBeenSet = false;
79 bool m_defaultValueHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace signer
84} // namespace Aws
AWS_SIGNER_API HashAlgorithmOptions()=default
void SetAllowedValues(AllowedValuesT &&value)
HashAlgorithmOptions & WithAllowedValues(AllowedValuesT &&value)
AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const
HashAlgorithmOptions & AddAllowedValues(HashAlgorithm value)
AWS_SIGNER_API HashAlgorithmOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SIGNER_API HashAlgorithmOptions(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< HashAlgorithm > & GetAllowedValues() const
HashAlgorithmOptions & WithDefaultValue(HashAlgorithm value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue