AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
HashAlgorithmOptions.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/HashAlgorithm.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 HashAlgorithmOptions() = default;
39 AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<HashAlgorithm>& GetAllowedValues() const { return m_allowedValues; }
47 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
48 template<typename AllowedValuesT = Aws::Vector<HashAlgorithm>>
49 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
50 template<typename AllowedValuesT = Aws::Vector<HashAlgorithm>>
51 HashAlgorithmOptions& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
52 inline HashAlgorithmOptions& AddAllowedValues(HashAlgorithm value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
54
56
59 inline HashAlgorithm GetDefaultValue() const { return m_defaultValue; }
60 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
61 inline void SetDefaultValue(HashAlgorithm value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
64 private:
65
66 Aws::Vector<HashAlgorithm> m_allowedValues;
67 bool m_allowedValuesHasBeenSet = false;
68
70 bool m_defaultValueHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace signer
75} // 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