AWS SDK for C++

AWS SDK for C++ Version 1.11.907

Loading...
Searching...
No Matches
BedrockGuardrailResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/GuardrailAction.h>
10#include <aws/guardduty/model/GuardrailSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API BedrockGuardrailResource() = default;
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetVersion() const { return m_version; }
43 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
44 template <typename VersionT = Aws::String>
45 void SetVersion(VersionT&& value) {
46 m_versionHasBeenSet = true;
47 m_version = std::forward<VersionT>(value);
48 }
49 template <typename VersionT = Aws::String>
51 SetVersion(std::forward<VersionT>(value));
52 return *this;
53 }
55
57
60 inline GuardrailAction GetGuardrailAction() const { return m_guardrailAction; }
61 inline bool GuardrailActionHasBeenSet() const { return m_guardrailActionHasBeenSet; }
63 m_guardrailActionHasBeenSet = true;
64 m_guardrailAction = value;
65 }
67 SetGuardrailAction(value);
68 return *this;
69 }
71
73
77 inline GuardrailSource GetGuardrailSource() const { return m_guardrailSource; }
78 inline bool GuardrailSourceHasBeenSet() const { return m_guardrailSourceHasBeenSet; }
80 m_guardrailSourceHasBeenSet = true;
81 m_guardrailSource = value;
82 }
84 SetGuardrailSource(value);
85 return *this;
86 }
88 private:
89 Aws::String m_version;
90
92
94 bool m_versionHasBeenSet = false;
95 bool m_guardrailActionHasBeenSet = false;
96 bool m_guardrailSourceHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace GuardDuty
101} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
BedrockGuardrailResource & WithVersion(VersionT &&value)
BedrockGuardrailResource & WithGuardrailSource(GuardrailSource value)
BedrockGuardrailResource & WithGuardrailAction(GuardrailAction value)
AWS_GUARDDUTY_API BedrockGuardrailResource()=default
AWS_GUARDDUTY_API BedrockGuardrailResource(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API BedrockGuardrailResource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue