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
// 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 DeleteServiceInput {
/// <p>The ID of the environment that the service is in.</p>
pub environment_identifier: ::std::option::Option<::std::string::String>,
/// <p>Deletes a Refactor Spaces service.</p><note>
/// <p>The <code>RefactorSpacesSecurityGroup</code> security group must be removed from all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.</p>
/// </note>
pub application_identifier: ::std::option::Option<::std::string::String>,
/// <p>The ID of the service to delete.</p>
pub service_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteServiceInput {
/// <p>The ID of the environment that the service is in.</p>
pub fn environment_identifier(&self) -> ::std::option::Option<&str> {
self.environment_identifier.as_deref()
}
/// <p>Deletes a Refactor Spaces service.</p><note>
/// <p>The <code>RefactorSpacesSecurityGroup</code> security group must be removed from all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.</p>
/// </note>
pub fn application_identifier(&self) -> ::std::option::Option<&str> {
self.application_identifier.as_deref()
}
/// <p>The ID of the service to delete.</p>
pub fn service_identifier(&self) -> ::std::option::Option<&str> {
self.service_identifier.as_deref()
}
}
impl DeleteServiceInput {
/// Creates a new builder-style object to manufacture [`DeleteServiceInput`](crate::operation::delete_service::DeleteServiceInput).
pub fn builder() -> crate::operation::delete_service::builders::DeleteServiceInputBuilder {
crate::operation::delete_service::builders::DeleteServiceInputBuilder::default()
}
}
/// A builder for [`DeleteServiceInput`](crate::operation::delete_service::DeleteServiceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteServiceInputBuilder {
pub(crate) environment_identifier: ::std::option::Option<::std::string::String>,
pub(crate) application_identifier: ::std::option::Option<::std::string::String>,
pub(crate) service_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteServiceInputBuilder {
/// <p>The ID of the environment that the service is in.</p>
/// This field is required.
pub fn environment_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.environment_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the environment that the service is in.</p>
pub fn set_environment_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.environment_identifier = input;
self
}
/// <p>The ID of the environment that the service is in.</p>
pub fn get_environment_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.environment_identifier
}
/// <p>Deletes a Refactor Spaces service.</p><note>
/// <p>The <code>RefactorSpacesSecurityGroup</code> security group must be removed from all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.</p>
/// </note>
/// This field is required.
pub fn application_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.application_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>Deletes a Refactor Spaces service.</p><note>
/// <p>The <code>RefactorSpacesSecurityGroup</code> security group must be removed from all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.</p>
/// </note>
pub fn set_application_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.application_identifier = input;
self
}
/// <p>Deletes a Refactor Spaces service.</p><note>
/// <p>The <code>RefactorSpacesSecurityGroup</code> security group must be removed from all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.</p>
/// </note>
pub fn get_application_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.application_identifier
}
/// <p>The ID of the service to delete.</p>
/// This field is required.
pub fn service_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the service to delete.</p>
pub fn set_service_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_identifier = input;
self
}
/// <p>The ID of the service to delete.</p>
pub fn get_service_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.service_identifier
}
/// Consumes the builder and constructs a [`DeleteServiceInput`](crate::operation::delete_service::DeleteServiceInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_service::DeleteServiceInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_service::DeleteServiceInput {
environment_identifier: self.environment_identifier,
application_identifier: self.application_identifier,
service_identifier: self.service_identifier,
})
}
}