aws_sdk_ecs/operation/create_service/_create_service_output.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct CreateServiceOutput {
6 /// <p>The full description of your service following the create call.</p>
7 /// <p>A service will return either a <code>capacityProviderStrategy</code> or <code>launchType</code> parameter, but not both, depending where one was specified when it was created.</p>
8 /// <p>If a service is using the <code>ECS</code> deployment controller, the <code>deploymentController</code> and <code>taskSets</code> parameters will not be returned.</p>
9 /// <p>if the service uses the <code>CODE_DEPLOY</code> deployment controller, the <code>deploymentController</code>, <code>taskSets</code> and <code>deployments</code> parameters will be returned, however the <code>deployments</code> parameter will be an empty list.</p>
10 /// <p>The response includes a <code>lifecycleHookDetails</code> field, which is an empty array when the service is created or updated. The values are populated when a lifecycle hook executes and are available as part of the service deployment details (<a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html">DescribeServiceDeployments</a>).</p>
11 pub service: ::std::option::Option<crate::types::Service>,
12 _request_id: Option<String>,
13}
14impl CreateServiceOutput {
15 /// <p>The full description of your service following the create call.</p>
16 /// <p>A service will return either a <code>capacityProviderStrategy</code> or <code>launchType</code> parameter, but not both, depending where one was specified when it was created.</p>
17 /// <p>If a service is using the <code>ECS</code> deployment controller, the <code>deploymentController</code> and <code>taskSets</code> parameters will not be returned.</p>
18 /// <p>if the service uses the <code>CODE_DEPLOY</code> deployment controller, the <code>deploymentController</code>, <code>taskSets</code> and <code>deployments</code> parameters will be returned, however the <code>deployments</code> parameter will be an empty list.</p>
19 /// <p>The response includes a <code>lifecycleHookDetails</code> field, which is an empty array when the service is created or updated. The values are populated when a lifecycle hook executes and are available as part of the service deployment details (<a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html">DescribeServiceDeployments</a>).</p>
20 pub fn service(&self) -> ::std::option::Option<&crate::types::Service> {
21 self.service.as_ref()
22 }
23}
24impl ::aws_types::request_id::RequestId for CreateServiceOutput {
25 fn request_id(&self) -> Option<&str> {
26 self._request_id.as_deref()
27 }
28}
29impl CreateServiceOutput {
30 /// Creates a new builder-style object to manufacture [`CreateServiceOutput`](crate::operation::create_service::CreateServiceOutput).
31 pub fn builder() -> crate::operation::create_service::builders::CreateServiceOutputBuilder {
32 crate::operation::create_service::builders::CreateServiceOutputBuilder::default()
33 }
34}
35
36/// A builder for [`CreateServiceOutput`](crate::operation::create_service::CreateServiceOutput).
37#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
38#[non_exhaustive]
39pub struct CreateServiceOutputBuilder {
40 pub(crate) service: ::std::option::Option<crate::types::Service>,
41 _request_id: Option<String>,
42}
43impl CreateServiceOutputBuilder {
44 /// <p>The full description of your service following the create call.</p>
45 /// <p>A service will return either a <code>capacityProviderStrategy</code> or <code>launchType</code> parameter, but not both, depending where one was specified when it was created.</p>
46 /// <p>If a service is using the <code>ECS</code> deployment controller, the <code>deploymentController</code> and <code>taskSets</code> parameters will not be returned.</p>
47 /// <p>if the service uses the <code>CODE_DEPLOY</code> deployment controller, the <code>deploymentController</code>, <code>taskSets</code> and <code>deployments</code> parameters will be returned, however the <code>deployments</code> parameter will be an empty list.</p>
48 /// <p>The response includes a <code>lifecycleHookDetails</code> field, which is an empty array when the service is created or updated. The values are populated when a lifecycle hook executes and are available as part of the service deployment details (<a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html">DescribeServiceDeployments</a>).</p>
49 pub fn service(mut self, input: crate::types::Service) -> Self {
50 self.service = ::std::option::Option::Some(input);
51 self
52 }
53 /// <p>The full description of your service following the create call.</p>
54 /// <p>A service will return either a <code>capacityProviderStrategy</code> or <code>launchType</code> parameter, but not both, depending where one was specified when it was created.</p>
55 /// <p>If a service is using the <code>ECS</code> deployment controller, the <code>deploymentController</code> and <code>taskSets</code> parameters will not be returned.</p>
56 /// <p>if the service uses the <code>CODE_DEPLOY</code> deployment controller, the <code>deploymentController</code>, <code>taskSets</code> and <code>deployments</code> parameters will be returned, however the <code>deployments</code> parameter will be an empty list.</p>
57 /// <p>The response includes a <code>lifecycleHookDetails</code> field, which is an empty array when the service is created or updated. The values are populated when a lifecycle hook executes and are available as part of the service deployment details (<a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html">DescribeServiceDeployments</a>).</p>
58 pub fn set_service(mut self, input: ::std::option::Option<crate::types::Service>) -> Self {
59 self.service = input;
60 self
61 }
62 /// <p>The full description of your service following the create call.</p>
63 /// <p>A service will return either a <code>capacityProviderStrategy</code> or <code>launchType</code> parameter, but not both, depending where one was specified when it was created.</p>
64 /// <p>If a service is using the <code>ECS</code> deployment controller, the <code>deploymentController</code> and <code>taskSets</code> parameters will not be returned.</p>
65 /// <p>if the service uses the <code>CODE_DEPLOY</code> deployment controller, the <code>deploymentController</code>, <code>taskSets</code> and <code>deployments</code> parameters will be returned, however the <code>deployments</code> parameter will be an empty list.</p>
66 /// <p>The response includes a <code>lifecycleHookDetails</code> field, which is an empty array when the service is created or updated. The values are populated when a lifecycle hook executes and are available as part of the service deployment details (<a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html">DescribeServiceDeployments</a>).</p>
67 pub fn get_service(&self) -> &::std::option::Option<crate::types::Service> {
68 &self.service
69 }
70 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
71 self._request_id = Some(request_id.into());
72 self
73 }
74
75 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
76 self._request_id = request_id;
77 self
78 }
79 /// Consumes the builder and constructs a [`CreateServiceOutput`](crate::operation::create_service::CreateServiceOutput).
80 pub fn build(self) -> crate::operation::create_service::CreateServiceOutput {
81 crate::operation::create_service::CreateServiceOutput {
82 service: self.service,
83 _request_id: self._request_id,
84 }
85 }
86}