AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerGroupsConfiguration.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/ConnectionPortRange.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GameLift
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_GAMELIFT_API ContainerGroupsConfiguration();
43 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Vector<Aws::String>& GetContainerGroupDefinitionNames() const{ return m_containerGroupDefinitionNames; }
52 inline bool ContainerGroupDefinitionNamesHasBeenSet() const { return m_containerGroupDefinitionNamesHasBeenSet; }
53 inline void SetContainerGroupDefinitionNames(const Aws::Vector<Aws::String>& value) { m_containerGroupDefinitionNamesHasBeenSet = true; m_containerGroupDefinitionNames = value; }
54 inline void SetContainerGroupDefinitionNames(Aws::Vector<Aws::String>&& value) { m_containerGroupDefinitionNamesHasBeenSet = true; m_containerGroupDefinitionNames = std::move(value); }
57 inline ContainerGroupsConfiguration& AddContainerGroupDefinitionNames(const Aws::String& value) { m_containerGroupDefinitionNamesHasBeenSet = true; m_containerGroupDefinitionNames.push_back(value); return *this; }
58 inline ContainerGroupsConfiguration& AddContainerGroupDefinitionNames(Aws::String&& value) { m_containerGroupDefinitionNamesHasBeenSet = true; m_containerGroupDefinitionNames.push_back(std::move(value)); return *this; }
59 inline ContainerGroupsConfiguration& AddContainerGroupDefinitionNames(const char* value) { m_containerGroupDefinitionNamesHasBeenSet = true; m_containerGroupDefinitionNames.push_back(value); return *this; }
61
63
79 inline const ConnectionPortRange& GetConnectionPortRange() const{ return m_connectionPortRange; }
80 inline bool ConnectionPortRangeHasBeenSet() const { return m_connectionPortRangeHasBeenSet; }
81 inline void SetConnectionPortRange(const ConnectionPortRange& value) { m_connectionPortRangeHasBeenSet = true; m_connectionPortRange = value; }
82 inline void SetConnectionPortRange(ConnectionPortRange&& value) { m_connectionPortRangeHasBeenSet = true; m_connectionPortRange = std::move(value); }
86
88
96 inline int GetDesiredReplicaContainerGroupsPerInstance() const{ return m_desiredReplicaContainerGroupsPerInstance; }
97 inline bool DesiredReplicaContainerGroupsPerInstanceHasBeenSet() const { return m_desiredReplicaContainerGroupsPerInstanceHasBeenSet; }
98 inline void SetDesiredReplicaContainerGroupsPerInstance(int value) { m_desiredReplicaContainerGroupsPerInstanceHasBeenSet = true; m_desiredReplicaContainerGroupsPerInstance = value; }
101 private:
102
103 Aws::Vector<Aws::String> m_containerGroupDefinitionNames;
104 bool m_containerGroupDefinitionNamesHasBeenSet = false;
105
106 ConnectionPortRange m_connectionPortRange;
107 bool m_connectionPortRangeHasBeenSet = false;
108
109 int m_desiredReplicaContainerGroupsPerInstance;
110 bool m_desiredReplicaContainerGroupsPerInstanceHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace GameLift
115} // namespace Aws
ContainerGroupsConfiguration & WithDesiredReplicaContainerGroupsPerInstance(int value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerGroupsConfiguration & AddContainerGroupDefinitionNames(const char *value)
void SetConnectionPortRange(const ConnectionPortRange &value)
ContainerGroupsConfiguration & AddContainerGroupDefinitionNames(Aws::String &&value)
ContainerGroupsConfiguration & WithContainerGroupDefinitionNames(Aws::Vector< Aws::String > &&value)
ContainerGroupsConfiguration & WithConnectionPortRange(const ConnectionPortRange &value)
ContainerGroupsConfiguration & WithContainerGroupDefinitionNames(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetContainerGroupDefinitionNames() const
AWS_GAMELIFT_API ContainerGroupsConfiguration(Aws::Utils::Json::JsonView jsonValue)
ContainerGroupsConfiguration & AddContainerGroupDefinitionNames(const Aws::String &value)
ContainerGroupsConfiguration & WithConnectionPortRange(ConnectionPortRange &&value)
void SetContainerGroupDefinitionNames(Aws::Vector< Aws::String > &&value)
AWS_GAMELIFT_API ContainerGroupsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContainerGroupDefinitionNames(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue