AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAllowedValues(const Aws::Vector<HashAlgorithm>& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
49 inline void SetAllowedValues(Aws::Vector<HashAlgorithm>&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
51 inline HashAlgorithmOptions& WithAllowedValues(Aws::Vector<HashAlgorithm>&& value) { SetAllowedValues(std::move(value)); return *this;}
52 inline HashAlgorithmOptions& AddAllowedValues(const HashAlgorithm& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
53 inline HashAlgorithmOptions& AddAllowedValues(HashAlgorithm&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(std::move(value)); return *this; }
55
57
60 inline const HashAlgorithm& GetDefaultValue() const{ return m_defaultValue; }
61 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
62 inline void SetDefaultValue(const HashAlgorithm& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
63 inline void SetDefaultValue(HashAlgorithm&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
64 inline HashAlgorithmOptions& WithDefaultValue(const HashAlgorithm& value) { SetDefaultValue(value); return *this;}
65 inline HashAlgorithmOptions& WithDefaultValue(HashAlgorithm&& value) { SetDefaultValue(std::move(value)); return *this;}
67 private:
68
69 Aws::Vector<HashAlgorithm> m_allowedValues;
70 bool m_allowedValuesHasBeenSet = false;
71
72 HashAlgorithm m_defaultValue;
73 bool m_defaultValueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace signer
78} // namespace Aws
HashAlgorithmOptions & AddAllowedValues(const HashAlgorithm &value)
HashAlgorithmOptions & WithDefaultValue(const HashAlgorithm &value)
void SetAllowedValues(const Aws::Vector< HashAlgorithm > &value)
HashAlgorithmOptions & AddAllowedValues(HashAlgorithm &&value)
HashAlgorithmOptions & WithDefaultValue(HashAlgorithm &&value)
void SetAllowedValues(Aws::Vector< HashAlgorithm > &&value)
AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const
HashAlgorithmOptions & WithAllowedValues(Aws::Vector< HashAlgorithm > &&value)
HashAlgorithmOptions & WithAllowedValues(const Aws::Vector< HashAlgorithm > &value)
AWS_SIGNER_API HashAlgorithmOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const HashAlgorithm & GetDefaultValue() const
AWS_SIGNER_API HashAlgorithmOptions(Aws::Utils::Json::JsonView jsonValue)
void SetDefaultValue(const HashAlgorithm &value)
const Aws::Vector< HashAlgorithm > & GetAllowedValues() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue