AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerAttributes.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/model/ContainerPortMapping.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_GAMELIFT_API ContainerAttributes();
41 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const Aws::Vector<ContainerPortMapping>& GetContainerPortMappings() const{ return m_containerPortMappings; }
52 inline bool ContainerPortMappingsHasBeenSet() const { return m_containerPortMappingsHasBeenSet; }
53 inline void SetContainerPortMappings(const Aws::Vector<ContainerPortMapping>& value) { m_containerPortMappingsHasBeenSet = true; m_containerPortMappings = value; }
54 inline void SetContainerPortMappings(Aws::Vector<ContainerPortMapping>&& value) { m_containerPortMappingsHasBeenSet = true; m_containerPortMappings = std::move(value); }
57 inline ContainerAttributes& AddContainerPortMappings(const ContainerPortMapping& value) { m_containerPortMappingsHasBeenSet = true; m_containerPortMappings.push_back(value); return *this; }
58 inline ContainerAttributes& AddContainerPortMappings(ContainerPortMapping&& value) { m_containerPortMappingsHasBeenSet = true; m_containerPortMappings.push_back(std::move(value)); return *this; }
60 private:
61
62 Aws::Vector<ContainerPortMapping> m_containerPortMappings;
63 bool m_containerPortMappingsHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace GameLift
68} // namespace Aws
void SetContainerPortMappings(const Aws::Vector< ContainerPortMapping > &value)
ContainerAttributes & WithContainerPortMappings(const Aws::Vector< ContainerPortMapping > &value)
ContainerAttributes & AddContainerPortMappings(ContainerPortMapping &&value)
AWS_GAMELIFT_API ContainerAttributes(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ContainerPortMapping > & GetContainerPortMappings() const
ContainerAttributes & AddContainerPortMappings(const ContainerPortMapping &value)
ContainerAttributes & WithContainerPortMappings(Aws::Vector< ContainerPortMapping > &&value)
void SetContainerPortMappings(Aws::Vector< ContainerPortMapping > &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API ContainerAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue