AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
SigningConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ecr/ECR_EXPORTS.h>
9#include <aws/ecr/model/SigningRule.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECR {
21namespace Model {
22
30 public:
31 AWS_ECR_API SigningConfiguration() = default;
35
37
42 inline const Aws::Vector<SigningRule>& GetRules() const { return m_rules; }
43 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
44 template <typename RulesT = Aws::Vector<SigningRule>>
45 void SetRules(RulesT&& value) {
46 m_rulesHasBeenSet = true;
47 m_rules = std::forward<RulesT>(value);
48 }
49 template <typename RulesT = Aws::Vector<SigningRule>>
51 SetRules(std::forward<RulesT>(value));
52 return *this;
53 }
54 template <typename RulesT = SigningRule>
55 SigningConfiguration& AddRules(RulesT&& value) {
56 m_rulesHasBeenSet = true;
57 m_rules.emplace_back(std::forward<RulesT>(value));
58 return *this;
59 }
61 private:
63 bool m_rulesHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace ECR
68} // namespace Aws
AWS_ECR_API SigningConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SigningConfiguration & AddRules(RulesT &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< SigningRule > & GetRules() const
SigningConfiguration & WithRules(RulesT &&value)
AWS_ECR_API SigningConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API SigningConfiguration()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue