AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CrossRegionTrafficConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SageMaker {
17namespace Model {
18
32 public:
33 AWS_SAGEMAKER_API CrossRegionTrafficConfig() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline int GetMaxInvocationsPerSecondPerInstance() const { return m_maxInvocationsPerSecondPerInstance; }
45 inline bool MaxInvocationsPerSecondPerInstanceHasBeenSet() const { return m_maxInvocationsPerSecondPerInstanceHasBeenSet; }
47 m_maxInvocationsPerSecondPerInstanceHasBeenSet = true;
48 m_maxInvocationsPerSecondPerInstance = value;
49 }
55
57
61 inline int GetMaxCrossRegionPercentPerEndpoint() const { return m_maxCrossRegionPercentPerEndpoint; }
62 inline bool MaxCrossRegionPercentPerEndpointHasBeenSet() const { return m_maxCrossRegionPercentPerEndpointHasBeenSet; }
63 inline void SetMaxCrossRegionPercentPerEndpoint(int value) {
64 m_maxCrossRegionPercentPerEndpointHasBeenSet = true;
65 m_maxCrossRegionPercentPerEndpoint = value;
66 }
72 private:
73 int m_maxInvocationsPerSecondPerInstance{0};
74
75 int m_maxCrossRegionPercentPerEndpoint{0};
76 bool m_maxInvocationsPerSecondPerInstanceHasBeenSet = false;
77 bool m_maxCrossRegionPercentPerEndpointHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace SageMaker
82} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API CrossRegionTrafficConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API CrossRegionTrafficConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
CrossRegionTrafficConfig & WithMaxCrossRegionPercentPerEndpoint(int value)
CrossRegionTrafficConfig & WithMaxInvocationsPerSecondPerInstance(int value)
AWS_SAGEMAKER_API CrossRegionTrafficConfig()=default
Aws::Utils::Json::JsonValue JsonValue