AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ShadowModelVariantConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SAGEMAKER_API ShadowModelVariantConfig();
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetShadowModelVariantName() const{ return m_shadowModelVariantName; }
46 inline bool ShadowModelVariantNameHasBeenSet() const { return m_shadowModelVariantNameHasBeenSet; }
47 inline void SetShadowModelVariantName(const Aws::String& value) { m_shadowModelVariantNameHasBeenSet = true; m_shadowModelVariantName = value; }
48 inline void SetShadowModelVariantName(Aws::String&& value) { m_shadowModelVariantNameHasBeenSet = true; m_shadowModelVariantName = std::move(value); }
49 inline void SetShadowModelVariantName(const char* value) { m_shadowModelVariantNameHasBeenSet = true; m_shadowModelVariantName.assign(value); }
52 inline ShadowModelVariantConfig& WithShadowModelVariantName(const char* value) { SetShadowModelVariantName(value); return *this;}
54
56
60 inline int GetSamplingPercentage() const{ return m_samplingPercentage; }
61 inline bool SamplingPercentageHasBeenSet() const { return m_samplingPercentageHasBeenSet; }
62 inline void SetSamplingPercentage(int value) { m_samplingPercentageHasBeenSet = true; m_samplingPercentage = value; }
63 inline ShadowModelVariantConfig& WithSamplingPercentage(int value) { SetSamplingPercentage(value); return *this;}
65 private:
66
67 Aws::String m_shadowModelVariantName;
68 bool m_shadowModelVariantNameHasBeenSet = false;
69
70 int m_samplingPercentage;
71 bool m_samplingPercentageHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SageMaker
76} // namespace Aws
ShadowModelVariantConfig & WithShadowModelVariantName(Aws::String &&value)
ShadowModelVariantConfig & WithShadowModelVariantName(const char *value)
ShadowModelVariantConfig & WithShadowModelVariantName(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API ShadowModelVariantConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ShadowModelVariantConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ShadowModelVariantConfig & WithSamplingPercentage(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue