AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
35 {
36 public:
37 AWS_GAMELIFT_API ContainerPortConfiguration();
40 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<ContainerPortRange>& GetContainerPortRanges() const{ return m_containerPortRanges; }
49 inline bool ContainerPortRangesHasBeenSet() const { return m_containerPortRangesHasBeenSet; }
50 inline void SetContainerPortRanges(const Aws::Vector<ContainerPortRange>& value) { m_containerPortRangesHasBeenSet = true; m_containerPortRanges = value; }
51 inline void SetContainerPortRanges(Aws::Vector<ContainerPortRange>&& value) { m_containerPortRangesHasBeenSet = true; m_containerPortRanges = std::move(value); }
54 inline ContainerPortConfiguration& AddContainerPortRanges(const ContainerPortRange& value) { m_containerPortRangesHasBeenSet = true; m_containerPortRanges.push_back(value); return *this; }
55 inline ContainerPortConfiguration& AddContainerPortRanges(ContainerPortRange&& value) { m_containerPortRangesHasBeenSet = true; m_containerPortRanges.push_back(std::move(value)); return *this; }
57 private:
58
59 Aws::Vector<ContainerPortRange> m_containerPortRanges;
60 bool m_containerPortRangesHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace GameLift
65} // namespace Aws
void SetContainerPortRanges(Aws::Vector< ContainerPortRange > &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerPortConfiguration & AddContainerPortRanges(ContainerPortRange &&value)
AWS_GAMELIFT_API ContainerPortConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API ContainerPortConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerPortConfiguration & WithContainerPortRanges(const Aws::Vector< ContainerPortRange > &value)
const Aws::Vector< ContainerPortRange > & GetContainerPortRanges() const
ContainerPortConfiguration & WithContainerPortRanges(Aws::Vector< ContainerPortRange > &&value)
void SetContainerPortRanges(const Aws::Vector< ContainerPortRange > &value)
ContainerPortConfiguration & AddContainerPortRanges(const ContainerPortRange &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue