AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
TargetConfiguration.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace GameLift {
17namespace Model {
18
30 public:
31 AWS_GAMELIFT_API TargetConfiguration() = default;
32 AWS_GAMELIFT_API TargetConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_GAMELIFT_API TargetConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
44 inline double GetTargetValue() const { return m_targetValue; }
45 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
46 inline void SetTargetValue(double value) {
47 m_targetValueHasBeenSet = true;
48 m_targetValue = value;
49 }
50 inline TargetConfiguration& WithTargetValue(double value) {
51 SetTargetValue(value);
52 return *this;
53 }
55 private:
56 double m_targetValue{0.0};
57 bool m_targetValueHasBeenSet = false;
58};
59
60} // namespace Model
61} // namespace GameLift
62} // namespace Aws
AWS_GAMELIFT_API TargetConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_GAMELIFT_API TargetConfiguration()=default
AWS_GAMELIFT_API TargetConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
TargetConfiguration & WithTargetValue(double value)