AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceAccess.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/OperatingSystem.h>
10#include <aws/gamelift/model/InstanceCredentials.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
36 {
37 public:
38 AWS_GAMELIFT_API InstanceAccess();
39 AWS_GAMELIFT_API InstanceAccess(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
49 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
50 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
51 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
52 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
53 inline InstanceAccess& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
54 inline InstanceAccess& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
55 inline InstanceAccess& WithFleetId(const char* value) { SetFleetId(value); return *this;}
57
59
62 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
63 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
64 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
65 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
66 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
67 inline InstanceAccess& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
68 inline InstanceAccess& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
69 inline InstanceAccess& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
71
73
76 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
77 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
78 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
79 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
80 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
81 inline InstanceAccess& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
82 inline InstanceAccess& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
83 inline InstanceAccess& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
85
87
90 inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
91 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
92 inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
93 inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
94 inline InstanceAccess& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
95 inline InstanceAccess& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
97
99
102 inline const InstanceCredentials& GetCredentials() const{ return m_credentials; }
103 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
104 inline void SetCredentials(const InstanceCredentials& value) { m_credentialsHasBeenSet = true; m_credentials = value; }
105 inline void SetCredentials(InstanceCredentials&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); }
106 inline InstanceAccess& WithCredentials(const InstanceCredentials& value) { SetCredentials(value); return *this;}
107 inline InstanceAccess& WithCredentials(InstanceCredentials&& value) { SetCredentials(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_fleetId;
112 bool m_fleetIdHasBeenSet = false;
113
114 Aws::String m_instanceId;
115 bool m_instanceIdHasBeenSet = false;
116
117 Aws::String m_ipAddress;
118 bool m_ipAddressHasBeenSet = false;
119
120 OperatingSystem m_operatingSystem;
121 bool m_operatingSystemHasBeenSet = false;
122
123 InstanceCredentials m_credentials;
124 bool m_credentialsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace GameLift
129} // namespace Aws
void SetIpAddress(const char *value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFleetId() const
InstanceAccess & WithFleetId(Aws::String &&value)
const OperatingSystem & GetOperatingSystem() const
InstanceAccess & WithOperatingSystem(const OperatingSystem &value)
void SetInstanceId(const char *value)
InstanceAccess & WithInstanceId(const char *value)
InstanceAccess & WithOperatingSystem(OperatingSystem &&value)
void SetFleetId(const Aws::String &value)
InstanceAccess & WithInstanceId(Aws::String &&value)
AWS_GAMELIFT_API InstanceAccess(Aws::Utils::Json::JsonView jsonValue)
InstanceAccess & WithCredentials(const InstanceCredentials &value)
void SetOperatingSystem(OperatingSystem &&value)
void SetInstanceId(const Aws::String &value)
void SetInstanceId(Aws::String &&value)
InstanceAccess & WithIpAddress(const char *value)
InstanceAccess & WithIpAddress(const Aws::String &value)
void SetFleetId(const char *value)
void SetCredentials(const InstanceCredentials &value)
const InstanceCredentials & GetCredentials() const
void SetIpAddress(const Aws::String &value)
InstanceAccess & WithIpAddress(Aws::String &&value)
void SetCredentials(InstanceCredentials &&value)
InstanceAccess & WithInstanceId(const Aws::String &value)
const Aws::String & GetInstanceId() const
InstanceAccess & WithFleetId(const char *value)
void SetFleetId(Aws::String &&value)
void SetIpAddress(Aws::String &&value)
void SetOperatingSystem(const OperatingSystem &value)
AWS_GAMELIFT_API InstanceAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIpAddress() const
InstanceAccess & WithCredentials(InstanceCredentials &&value)
InstanceAccess & WithFleetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue