AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
ContainerEnvironment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
37 public:
38 AWS_GAMELIFT_API ContainerEnvironment() = default;
39 AWS_GAMELIFT_API ContainerEnvironment(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_GAMELIFT_API ContainerEnvironment& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetValue() const { return m_value; }
66 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
67 template <typename ValueT = Aws::String>
68 void SetValue(ValueT&& value) {
69 m_valueHasBeenSet = true;
70 m_value = std::forward<ValueT>(value);
71 }
72 template <typename ValueT = Aws::String>
74 SetValue(std::forward<ValueT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_name;
80
81 Aws::String m_value;
82 bool m_nameHasBeenSet = false;
83 bool m_valueHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace GameLift
88} // namespace Aws
AWS_GAMELIFT_API ContainerEnvironment()=default
AWS_GAMELIFT_API ContainerEnvironment(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API ContainerEnvironment & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ContainerEnvironment & WithName(NameT &&value)
ContainerEnvironment & WithValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String