AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ContainerPortConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/ContainerPortRange.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
47 public:
48 AWS_GAMELIFT_API ContainerPortConfiguration() = default;
51 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
52
54
59 inline const Aws::Vector<ContainerPortRange>& GetContainerPortRanges() const { return m_containerPortRanges; }
60 inline bool ContainerPortRangesHasBeenSet() const { return m_containerPortRangesHasBeenSet; }
61 template <typename ContainerPortRangesT = Aws::Vector<ContainerPortRange>>
62 void SetContainerPortRanges(ContainerPortRangesT&& value) {
63 m_containerPortRangesHasBeenSet = true;
64 m_containerPortRanges = std::forward<ContainerPortRangesT>(value);
65 }
66 template <typename ContainerPortRangesT = Aws::Vector<ContainerPortRange>>
67 ContainerPortConfiguration& WithContainerPortRanges(ContainerPortRangesT&& value) {
68 SetContainerPortRanges(std::forward<ContainerPortRangesT>(value));
69 return *this;
70 }
71 template <typename ContainerPortRangesT = ContainerPortRange>
72 ContainerPortConfiguration& AddContainerPortRanges(ContainerPortRangesT&& value) {
73 m_containerPortRangesHasBeenSet = true;
74 m_containerPortRanges.emplace_back(std::forward<ContainerPortRangesT>(value));
75 return *this;
76 }
78 private:
79 Aws::Vector<ContainerPortRange> m_containerPortRanges;
80 bool m_containerPortRangesHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace GameLift
85} // 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