AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ContainerPortConfiguration.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/ContainerPortRange.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
51 {
52 public:
53 AWS_GAMELIFT_API ContainerPortConfiguration() = default;
56 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
57
58
60
65 inline const Aws::Vector<ContainerPortRange>& GetContainerPortRanges() const { return m_containerPortRanges; }
66 inline bool ContainerPortRangesHasBeenSet() const { return m_containerPortRangesHasBeenSet; }
67 template<typename ContainerPortRangesT = Aws::Vector<ContainerPortRange>>
68 void SetContainerPortRanges(ContainerPortRangesT&& value) { m_containerPortRangesHasBeenSet = true; m_containerPortRanges = std::forward<ContainerPortRangesT>(value); }
69 template<typename ContainerPortRangesT = Aws::Vector<ContainerPortRange>>
70 ContainerPortConfiguration& WithContainerPortRanges(ContainerPortRangesT&& value) { SetContainerPortRanges(std::forward<ContainerPortRangesT>(value)); return *this;}
71 template<typename ContainerPortRangesT = ContainerPortRange>
72 ContainerPortConfiguration& AddContainerPortRanges(ContainerPortRangesT&& value) { m_containerPortRangesHasBeenSet = true; m_containerPortRanges.emplace_back(std::forward<ContainerPortRangesT>(value)); return *this; }
74 private:
75
76 Aws::Vector<ContainerPortRange> m_containerPortRanges;
77 bool m_containerPortRangesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace GameLift
82} // namespace Aws
ContainerPortConfiguration & AddContainerPortRanges(ContainerPortRangesT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerPortConfiguration & WithContainerPortRanges(ContainerPortRangesT &&value)
AWS_GAMELIFT_API ContainerPortConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API ContainerPortConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API ContainerPortConfiguration()=default
const Aws::Vector< ContainerPortRange > & GetContainerPortRanges() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue