AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ContainerAttribute.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
31 public:
32 AWS_GAMELIFT_API ContainerAttribute() = default;
33 AWS_GAMELIFT_API ContainerAttribute(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API ContainerAttribute& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetContainerName() const { return m_containerName; }
42 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
43 template <typename ContainerNameT = Aws::String>
44 void SetContainerName(ContainerNameT&& value) {
45 m_containerNameHasBeenSet = true;
46 m_containerName = std::forward<ContainerNameT>(value);
47 }
48 template <typename ContainerNameT = Aws::String>
49 ContainerAttribute& WithContainerName(ContainerNameT&& value) {
50 SetContainerName(std::forward<ContainerNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetContainerRuntimeId() const { return m_containerRuntimeId; }
61 inline bool ContainerRuntimeIdHasBeenSet() const { return m_containerRuntimeIdHasBeenSet; }
62 template <typename ContainerRuntimeIdT = Aws::String>
63 void SetContainerRuntimeId(ContainerRuntimeIdT&& value) {
64 m_containerRuntimeIdHasBeenSet = true;
65 m_containerRuntimeId = std::forward<ContainerRuntimeIdT>(value);
66 }
67 template <typename ContainerRuntimeIdT = Aws::String>
68 ContainerAttribute& WithContainerRuntimeId(ContainerRuntimeIdT&& value) {
69 SetContainerRuntimeId(std::forward<ContainerRuntimeIdT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_containerName;
75
76 Aws::String m_containerRuntimeId;
77 bool m_containerNameHasBeenSet = false;
78 bool m_containerRuntimeIdHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace GameLift
83} // namespace Aws
void SetContainerName(ContainerNameT &&value)
ContainerAttribute & WithContainerRuntimeId(ContainerRuntimeIdT &&value)
AWS_GAMELIFT_API ContainerAttribute & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetContainerRuntimeId(ContainerRuntimeIdT &&value)
AWS_GAMELIFT_API ContainerAttribute()=default
const Aws::String & GetContainerName() const
AWS_GAMELIFT_API ContainerAttribute(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetContainerRuntimeId() const
ContainerAttribute & WithContainerName(ContainerNameT &&value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String