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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
// 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)]
pub struct GetComputeAccessOutput {
/// <p>The fleet ID of compute resource.</p>
#[doc(hidden)]
pub fleet_id: std::option::Option<std::string::String>,
/// <p>The Amazon Resource Name (<a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html">ARN</a>) that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:
/// <region>
/// ::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
/// </region></code>.</p>
#[doc(hidden)]
pub fleet_arn: std::option::Option<std::string::String>,
/// <p>The name of the compute resource you requested credentials for.</p>
#[doc(hidden)]
pub compute_name: std::option::Option<std::string::String>,
/// <p>The Amazon Resource Name (<a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html">ARN</a>) that is assigned to a GameLift compute resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:
/// <region>
/// ::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
/// </region></code>.</p>
#[doc(hidden)]
pub compute_arn: std::option::Option<std::string::String>,
/// <p>The access credentials for the compute resource.</p>
#[doc(hidden)]
pub credentials: std::option::Option<crate::types::AwsCredentials>,
_request_id: Option<String>,
}
impl GetComputeAccessOutput {
/// <p>The fleet ID of compute resource.</p>
pub fn fleet_id(&self) -> std::option::Option<&str> {
self.fleet_id.as_deref()
}
/// <p>The Amazon Resource Name (<a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html">ARN</a>) that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:
/// <region>
/// ::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
/// </region></code>.</p>
pub fn fleet_arn(&self) -> std::option::Option<&str> {
self.fleet_arn.as_deref()
}
/// <p>The name of the compute resource you requested credentials for.</p>
pub fn compute_name(&self) -> std::option::Option<&str> {
self.compute_name.as_deref()
}
/// <p>The Amazon Resource Name (<a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html">ARN</a>) that is assigned to a GameLift compute resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:
/// <region>
/// ::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
/// </region></code>.</p>
pub fn compute_arn(&self) -> std::option::Option<&str> {
self.compute_arn.as_deref()
}
/// <p>The access credentials for the compute resource.</p>
pub fn credentials(&self) -> std::option::Option<&crate::types::AwsCredentials> {
self.credentials.as_ref()
}
}
impl std::fmt::Debug for GetComputeAccessOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetComputeAccessOutput");
formatter.field("fleet_id", &self.fleet_id);
formatter.field("fleet_arn", &self.fleet_arn);
formatter.field("compute_name", &self.compute_name);
formatter.field("compute_arn", &self.compute_arn);
formatter.field("credentials", &"*** Sensitive Data Redacted ***");
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}
impl aws_http::request_id::RequestId for GetComputeAccessOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetComputeAccessOutput {
/// Creates a new builder-style object to manufacture [`GetComputeAccessOutput`](crate::operation::get_compute_access::GetComputeAccessOutput).
pub fn builder() -> crate::operation::get_compute_access::builders::GetComputeAccessOutputBuilder
{
crate::operation::get_compute_access::builders::GetComputeAccessOutputBuilder::default()
}
}
/// A builder for [`GetComputeAccessOutput`](crate::operation::get_compute_access::GetComputeAccessOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct GetComputeAccessOutputBuilder {
pub(crate) fleet_id: std::option::Option<std::string::String>,
pub(crate) fleet_arn: std::option::Option<std::string::String>,
pub(crate) compute_name: std::option::Option<std::string::String>,
pub(crate) compute_arn: std::option::Option<std::string::String>,
pub(crate) credentials: std::option::Option<crate::types::AwsCredentials>,
_request_id: Option<String>,
}
impl GetComputeAccessOutputBuilder {
/// <p>The fleet ID of compute resource.</p>
pub fn fleet_id(mut self, input: impl Into<std::string::String>) -> Self {
self.fleet_id = Some(input.into());
self
}
/// <p>The fleet ID of compute resource.</p>
pub fn set_fleet_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.fleet_id = input;
self
}
/// <p>The Amazon Resource Name (<a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html">ARN</a>) that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:
/// <region>
/// ::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
/// </region></code>.</p>
pub fn fleet_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.fleet_arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (<a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html">ARN</a>) that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:
/// <region>
/// ::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
/// </region></code>.</p>
pub fn set_fleet_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.fleet_arn = input;
self
}
/// <p>The name of the compute resource you requested credentials for.</p>
pub fn compute_name(mut self, input: impl Into<std::string::String>) -> Self {
self.compute_name = Some(input.into());
self
}
/// <p>The name of the compute resource you requested credentials for.</p>
pub fn set_compute_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.compute_name = input;
self
}
/// <p>The Amazon Resource Name (<a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html">ARN</a>) that is assigned to a GameLift compute resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:
/// <region>
/// ::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
/// </region></code>.</p>
pub fn compute_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.compute_arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (<a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html">ARN</a>) that is assigned to a GameLift compute resource and uniquely identifies it. ARNs are unique across all Regions. Format is <code>arn:aws:gamelift:
/// <region>
/// ::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
/// </region></code>.</p>
pub fn set_compute_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.compute_arn = input;
self
}
/// <p>The access credentials for the compute resource.</p>
pub fn credentials(mut self, input: crate::types::AwsCredentials) -> Self {
self.credentials = Some(input);
self
}
/// <p>The access credentials for the compute resource.</p>
pub fn set_credentials(
mut self,
input: std::option::Option<crate::types::AwsCredentials>,
) -> Self {
self.credentials = input;
self
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`GetComputeAccessOutput`](crate::operation::get_compute_access::GetComputeAccessOutput).
pub fn build(self) -> crate::operation::get_compute_access::GetComputeAccessOutput {
crate::operation::get_compute_access::GetComputeAccessOutput {
fleet_id: self.fleet_id,
fleet_arn: self.fleet_arn,
compute_name: self.compute_name,
compute_arn: self.compute_arn,
credentials: self.credentials,
_request_id: self._request_id,
}
}
}
impl std::fmt::Debug for GetComputeAccessOutputBuilder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetComputeAccessOutputBuilder");
formatter.field("fleet_id", &self.fleet_id);
formatter.field("fleet_arn", &self.fleet_arn);
formatter.field("compute_name", &self.compute_name);
formatter.field("compute_arn", &self.compute_arn);
formatter.field("credentials", &"*** Sensitive Data Redacted ***");
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}