1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RegisterComputeInput {
/// <p>A unique identifier for the fleet to register the compute to. You can use either the fleet ID or ARN value.</p>
#[doc(hidden)]
pub fleet_id: std::option::Option<std::string::String>,
/// <p>A descriptive label that is associated with the compute resource registered to your fleet.</p>
#[doc(hidden)]
pub compute_name: std::option::Option<std::string::String>,
/// <p>The path to the TLS certificate on your compute resource. The path and certificate are not validated by GameLift.</p>
#[doc(hidden)]
pub certificate_path: std::option::Option<std::string::String>,
/// <p>The DNS name of the compute resource. GameLift requires the DNS name or IP address to manage your compute resource.</p>
#[doc(hidden)]
pub dns_name: std::option::Option<std::string::String>,
/// <p>The IP address of the compute resource. GameLift requires the DNS name or IP address to manage your compute resource.</p>
#[doc(hidden)]
pub ip_address: std::option::Option<std::string::String>,
/// <p>The name of the custom location you added to the fleet you are registering this compute resource to.</p>
#[doc(hidden)]
pub location: std::option::Option<std::string::String>,
}
impl RegisterComputeInput {
/// <p>A unique identifier for the fleet to register the compute to. You can use either the fleet ID or ARN value.</p>
pub fn fleet_id(&self) -> std::option::Option<&str> {
self.fleet_id.as_deref()
}
/// <p>A descriptive label that is associated with the compute resource registered to your fleet.</p>
pub fn compute_name(&self) -> std::option::Option<&str> {
self.compute_name.as_deref()
}
/// <p>The path to the TLS certificate on your compute resource. The path and certificate are not validated by GameLift.</p>
pub fn certificate_path(&self) -> std::option::Option<&str> {
self.certificate_path.as_deref()
}
/// <p>The DNS name of the compute resource. GameLift requires the DNS name or IP address to manage your compute resource.</p>
pub fn dns_name(&self) -> std::option::Option<&str> {
self.dns_name.as_deref()
}
/// <p>The IP address of the compute resource. GameLift requires the DNS name or IP address to manage your compute resource.</p>
pub fn ip_address(&self) -> std::option::Option<&str> {
self.ip_address.as_deref()
}
/// <p>The name of the custom location you added to the fleet you are registering this compute resource to.</p>
pub fn location(&self) -> std::option::Option<&str> {
self.location.as_deref()
}
}
impl RegisterComputeInput {
/// Creates a new builder-style object to manufacture [`RegisterComputeInput`](crate::operation::register_compute::RegisterComputeInput).
pub fn builder() -> crate::operation::register_compute::builders::RegisterComputeInputBuilder {
crate::operation::register_compute::builders::RegisterComputeInputBuilder::default()
}
}
/// A builder for [`RegisterComputeInput`](crate::operation::register_compute::RegisterComputeInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct RegisterComputeInputBuilder {
pub(crate) fleet_id: std::option::Option<std::string::String>,
pub(crate) compute_name: std::option::Option<std::string::String>,
pub(crate) certificate_path: std::option::Option<std::string::String>,
pub(crate) dns_name: std::option::Option<std::string::String>,
pub(crate) ip_address: std::option::Option<std::string::String>,
pub(crate) location: std::option::Option<std::string::String>,
}
impl RegisterComputeInputBuilder {
/// <p>A unique identifier for the fleet to register the compute to. You can use either the fleet ID or ARN value.</p>
pub fn fleet_id(mut self, input: impl Into<std::string::String>) -> Self {
self.fleet_id = Some(input.into());
self
}
/// <p>A unique identifier for the fleet to register the compute to. You can use either the fleet ID or ARN value.</p>
pub fn set_fleet_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.fleet_id = input;
self
}
/// <p>A descriptive label that is associated with the compute resource registered to your fleet.</p>
pub fn compute_name(mut self, input: impl Into<std::string::String>) -> Self {
self.compute_name = Some(input.into());
self
}
/// <p>A descriptive label that is associated with the compute resource registered to your fleet.</p>
pub fn set_compute_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.compute_name = input;
self
}
/// <p>The path to the TLS certificate on your compute resource. The path and certificate are not validated by GameLift.</p>
pub fn certificate_path(mut self, input: impl Into<std::string::String>) -> Self {
self.certificate_path = Some(input.into());
self
}
/// <p>The path to the TLS certificate on your compute resource. The path and certificate are not validated by GameLift.</p>
pub fn set_certificate_path(mut self, input: std::option::Option<std::string::String>) -> Self {
self.certificate_path = input;
self
}
/// <p>The DNS name of the compute resource. GameLift requires the DNS name or IP address to manage your compute resource.</p>
pub fn dns_name(mut self, input: impl Into<std::string::String>) -> Self {
self.dns_name = Some(input.into());
self
}
/// <p>The DNS name of the compute resource. GameLift requires the DNS name or IP address to manage your compute resource.</p>
pub fn set_dns_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.dns_name = input;
self
}
/// <p>The IP address of the compute resource. GameLift requires the DNS name or IP address to manage your compute resource.</p>
pub fn ip_address(mut self, input: impl Into<std::string::String>) -> Self {
self.ip_address = Some(input.into());
self
}
/// <p>The IP address of the compute resource. GameLift requires the DNS name or IP address to manage your compute resource.</p>
pub fn set_ip_address(mut self, input: std::option::Option<std::string::String>) -> Self {
self.ip_address = input;
self
}
/// <p>The name of the custom location you added to the fleet you are registering this compute resource to.</p>
pub fn location(mut self, input: impl Into<std::string::String>) -> Self {
self.location = Some(input.into());
self
}
/// <p>The name of the custom location you added to the fleet you are registering this compute resource to.</p>
pub fn set_location(mut self, input: std::option::Option<std::string::String>) -> Self {
self.location = input;
self
}
/// Consumes the builder and constructs a [`RegisterComputeInput`](crate::operation::register_compute::RegisterComputeInput).
pub fn build(
self,
) -> Result<
crate::operation::register_compute::RegisterComputeInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::register_compute::RegisterComputeInput {
fleet_id: self.fleet_id,
compute_name: self.compute_name,
certificate_path: self.certificate_path,
dns_name: self.dns_name,
ip_address: self.ip_address,
location: self.location,
})
}
}