AWS SDK for C++

AWS SDK for C++ Version 1.11.816

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