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
// 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 RecordHandlerProgressInput {
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub bearer_token: ::std::option::Option<::std::string::String>,
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub operation_status: ::std::option::Option<crate::types::OperationStatus>,
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub current_operation_status: ::std::option::Option<crate::types::OperationStatus>,
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub status_message: ::std::option::Option<::std::string::String>,
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub error_code: ::std::option::Option<crate::types::HandlerErrorCode>,
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub resource_model: ::std::option::Option<::std::string::String>,
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub client_request_token: ::std::option::Option<::std::string::String>,
}
impl RecordHandlerProgressInput {
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn bearer_token(&self) -> ::std::option::Option<&str> {
self.bearer_token.as_deref()
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn operation_status(&self) -> ::std::option::Option<&crate::types::OperationStatus> {
self.operation_status.as_ref()
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn current_operation_status(&self) -> ::std::option::Option<&crate::types::OperationStatus> {
self.current_operation_status.as_ref()
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn status_message(&self) -> ::std::option::Option<&str> {
self.status_message.as_deref()
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn error_code(&self) -> ::std::option::Option<&crate::types::HandlerErrorCode> {
self.error_code.as_ref()
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn resource_model(&self) -> ::std::option::Option<&str> {
self.resource_model.as_deref()
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn client_request_token(&self) -> ::std::option::Option<&str> {
self.client_request_token.as_deref()
}
}
impl RecordHandlerProgressInput {
/// Creates a new builder-style object to manufacture [`RecordHandlerProgressInput`](crate::operation::record_handler_progress::RecordHandlerProgressInput).
pub fn builder() -> crate::operation::record_handler_progress::builders::RecordHandlerProgressInputBuilder {
crate::operation::record_handler_progress::builders::RecordHandlerProgressInputBuilder::default()
}
}
/// A builder for [`RecordHandlerProgressInput`](crate::operation::record_handler_progress::RecordHandlerProgressInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct RecordHandlerProgressInputBuilder {
pub(crate) bearer_token: ::std::option::Option<::std::string::String>,
pub(crate) operation_status: ::std::option::Option<crate::types::OperationStatus>,
pub(crate) current_operation_status: ::std::option::Option<crate::types::OperationStatus>,
pub(crate) status_message: ::std::option::Option<::std::string::String>,
pub(crate) error_code: ::std::option::Option<crate::types::HandlerErrorCode>,
pub(crate) resource_model: ::std::option::Option<::std::string::String>,
pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
}
impl RecordHandlerProgressInputBuilder {
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
/// This field is required.
pub fn bearer_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bearer_token = ::std::option::Option::Some(input.into());
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn set_bearer_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bearer_token = input;
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn get_bearer_token(&self) -> &::std::option::Option<::std::string::String> {
&self.bearer_token
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
/// This field is required.
pub fn operation_status(mut self, input: crate::types::OperationStatus) -> Self {
self.operation_status = ::std::option::Option::Some(input);
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn set_operation_status(mut self, input: ::std::option::Option<crate::types::OperationStatus>) -> Self {
self.operation_status = input;
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn get_operation_status(&self) -> &::std::option::Option<crate::types::OperationStatus> {
&self.operation_status
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn current_operation_status(mut self, input: crate::types::OperationStatus) -> Self {
self.current_operation_status = ::std::option::Option::Some(input);
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn set_current_operation_status(mut self, input: ::std::option::Option<crate::types::OperationStatus>) -> Self {
self.current_operation_status = input;
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn get_current_operation_status(&self) -> &::std::option::Option<crate::types::OperationStatus> {
&self.current_operation_status
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status_message = ::std::option::Option::Some(input.into());
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn set_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status_message = input;
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn get_status_message(&self) -> &::std::option::Option<::std::string::String> {
&self.status_message
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn error_code(mut self, input: crate::types::HandlerErrorCode) -> Self {
self.error_code = ::std::option::Option::Some(input);
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn set_error_code(mut self, input: ::std::option::Option<crate::types::HandlerErrorCode>) -> Self {
self.error_code = input;
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn get_error_code(&self) -> &::std::option::Option<crate::types::HandlerErrorCode> {
&self.error_code
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn resource_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resource_model = ::std::option::Option::Some(input.into());
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn set_resource_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resource_model = input;
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn get_resource_model(&self) -> &::std::option::Option<::std::string::String> {
&self.resource_model
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_request_token = ::std::option::Option::Some(input.into());
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_request_token = input;
self
}
/// <p>Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>.</p>
pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_request_token
}
/// Consumes the builder and constructs a [`RecordHandlerProgressInput`](crate::operation::record_handler_progress::RecordHandlerProgressInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::record_handler_progress::RecordHandlerProgressInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::record_handler_progress::RecordHandlerProgressInput {
bearer_token: self.bearer_token,
operation_status: self.operation_status,
current_operation_status: self.current_operation_status,
status_message: self.status_message,
error_code: self.error_code,
resource_model: self.resource_model,
client_request_token: self.client_request_token,
})
}
}