AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
WebCrawlerLimits.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace BedrockAgent {
17namespace Model {
18
26 public:
27 AWS_BEDROCKAGENT_API WebCrawlerLimits() = default;
30 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetRateLimit() const { return m_rateLimit; }
37 inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
38 inline void SetRateLimit(int value) {
39 m_rateLimitHasBeenSet = true;
40 m_rateLimit = value;
41 }
42 inline WebCrawlerLimits& WithRateLimit(int value) {
43 SetRateLimit(value);
44 return *this;
45 }
47
49
54 inline int GetMaxPages() const { return m_maxPages; }
55 inline bool MaxPagesHasBeenSet() const { return m_maxPagesHasBeenSet; }
56 inline void SetMaxPages(int value) {
57 m_maxPagesHasBeenSet = true;
58 m_maxPages = value;
59 }
60 inline WebCrawlerLimits& WithMaxPages(int value) {
61 SetMaxPages(value);
62 return *this;
63 }
65 private:
66 int m_rateLimit{0};
67
68 int m_maxPages{0};
69 bool m_rateLimitHasBeenSet = false;
70 bool m_maxPagesHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace BedrockAgent
75} // namespace Aws
WebCrawlerLimits & WithMaxPages(int value)
AWS_BEDROCKAGENT_API WebCrawlerLimits(Aws::Utils::Json::JsonView jsonValue)
WebCrawlerLimits & WithRateLimit(int value)
AWS_BEDROCKAGENT_API WebCrawlerLimits()=default
AWS_BEDROCKAGENT_API WebCrawlerLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue