aws_sdk_evidently/operation/update_project/
_update_project_input.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 UpdateProjectInput {
6    /// <p>The name or ARN of the project to update.</p>
7    pub project: ::std::option::Option<::std::string::String>,
8    /// <p>Use this parameter if the project will use client-side evaluation powered by AppConfig. Client-side evaluation allows your application to assign variations to user sessions locally instead of by calling the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a> operation. This mitigates the latency and availability risks that come with an API call. allows you to</p>
9    /// <p>This parameter is a structure that contains information about the AppConfig application that will be used for client-side evaluation.</p>
10    pub app_config_resource: ::std::option::Option<crate::types::ProjectAppConfigResourceConfig>,
11    /// <p>An optional description of the project.</p>
12    pub description: ::std::option::Option<::std::string::String>,
13}
14impl UpdateProjectInput {
15    /// <p>The name or ARN of the project to update.</p>
16    pub fn project(&self) -> ::std::option::Option<&str> {
17        self.project.as_deref()
18    }
19    /// <p>Use this parameter if the project will use client-side evaluation powered by AppConfig. Client-side evaluation allows your application to assign variations to user sessions locally instead of by calling the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a> operation. This mitigates the latency and availability risks that come with an API call. allows you to</p>
20    /// <p>This parameter is a structure that contains information about the AppConfig application that will be used for client-side evaluation.</p>
21    pub fn app_config_resource(&self) -> ::std::option::Option<&crate::types::ProjectAppConfigResourceConfig> {
22        self.app_config_resource.as_ref()
23    }
24    /// <p>An optional description of the project.</p>
25    pub fn description(&self) -> ::std::option::Option<&str> {
26        self.description.as_deref()
27    }
28}
29impl UpdateProjectInput {
30    /// Creates a new builder-style object to manufacture [`UpdateProjectInput`](crate::operation::update_project::UpdateProjectInput).
31    pub fn builder() -> crate::operation::update_project::builders::UpdateProjectInputBuilder {
32        crate::operation::update_project::builders::UpdateProjectInputBuilder::default()
33    }
34}
35
36/// A builder for [`UpdateProjectInput`](crate::operation::update_project::UpdateProjectInput).
37#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
38#[non_exhaustive]
39pub struct UpdateProjectInputBuilder {
40    pub(crate) project: ::std::option::Option<::std::string::String>,
41    pub(crate) app_config_resource: ::std::option::Option<crate::types::ProjectAppConfigResourceConfig>,
42    pub(crate) description: ::std::option::Option<::std::string::String>,
43}
44impl UpdateProjectInputBuilder {
45    /// <p>The name or ARN of the project to update.</p>
46    /// This field is required.
47    pub fn project(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
48        self.project = ::std::option::Option::Some(input.into());
49        self
50    }
51    /// <p>The name or ARN of the project to update.</p>
52    pub fn set_project(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
53        self.project = input;
54        self
55    }
56    /// <p>The name or ARN of the project to update.</p>
57    pub fn get_project(&self) -> &::std::option::Option<::std::string::String> {
58        &self.project
59    }
60    /// <p>Use this parameter if the project will use client-side evaluation powered by AppConfig. Client-side evaluation allows your application to assign variations to user sessions locally instead of by calling the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a> operation. This mitigates the latency and availability risks that come with an API call. allows you to</p>
61    /// <p>This parameter is a structure that contains information about the AppConfig application that will be used for client-side evaluation.</p>
62    pub fn app_config_resource(mut self, input: crate::types::ProjectAppConfigResourceConfig) -> Self {
63        self.app_config_resource = ::std::option::Option::Some(input);
64        self
65    }
66    /// <p>Use this parameter if the project will use client-side evaluation powered by AppConfig. Client-side evaluation allows your application to assign variations to user sessions locally instead of by calling the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a> operation. This mitigates the latency and availability risks that come with an API call. allows you to</p>
67    /// <p>This parameter is a structure that contains information about the AppConfig application that will be used for client-side evaluation.</p>
68    pub fn set_app_config_resource(mut self, input: ::std::option::Option<crate::types::ProjectAppConfigResourceConfig>) -> Self {
69        self.app_config_resource = input;
70        self
71    }
72    /// <p>Use this parameter if the project will use client-side evaluation powered by AppConfig. Client-side evaluation allows your application to assign variations to user sessions locally instead of by calling the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a> operation. This mitigates the latency and availability risks that come with an API call. allows you to</p>
73    /// <p>This parameter is a structure that contains information about the AppConfig application that will be used for client-side evaluation.</p>
74    pub fn get_app_config_resource(&self) -> &::std::option::Option<crate::types::ProjectAppConfigResourceConfig> {
75        &self.app_config_resource
76    }
77    /// <p>An optional description of the project.</p>
78    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
79        self.description = ::std::option::Option::Some(input.into());
80        self
81    }
82    /// <p>An optional description of the project.</p>
83    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
84        self.description = input;
85        self
86    }
87    /// <p>An optional description of the project.</p>
88    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
89        &self.description
90    }
91    /// Consumes the builder and constructs a [`UpdateProjectInput`](crate::operation::update_project::UpdateProjectInput).
92    pub fn build(
93        self,
94    ) -> ::std::result::Result<crate::operation::update_project::UpdateProjectInput, ::aws_smithy_types::error::operation::BuildError> {
95        ::std::result::Result::Ok(crate::operation::update_project::UpdateProjectInput {
96            project: self.project,
97            app_config_resource: self.app_config_resource,
98            description: self.description,
99        })
100    }
101}