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
// 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 GetInstancesInput {
/// <p>The token to advance to the next page of results from your request.</p>
/// <p>To get a page token, perform an initial <code>GetInstances</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
pub page_token: ::std::option::Option<::std::string::String>,
}
impl GetInstancesInput {
/// <p>The token to advance to the next page of results from your request.</p>
/// <p>To get a page token, perform an initial <code>GetInstances</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
pub fn page_token(&self) -> ::std::option::Option<&str> {
self.page_token.as_deref()
}
}
impl GetInstancesInput {
/// Creates a new builder-style object to manufacture [`GetInstancesInput`](crate::operation::get_instances::GetInstancesInput).
pub fn builder() -> crate::operation::get_instances::builders::GetInstancesInputBuilder {
crate::operation::get_instances::builders::GetInstancesInputBuilder::default()
}
}
/// A builder for [`GetInstancesInput`](crate::operation::get_instances::GetInstancesInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetInstancesInputBuilder {
pub(crate) page_token: ::std::option::Option<::std::string::String>,
}
impl GetInstancesInputBuilder {
/// <p>The token to advance to the next page of results from your request.</p>
/// <p>To get a page token, perform an initial <code>GetInstances</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
pub fn page_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.page_token = ::std::option::Option::Some(input.into());
self
}
/// <p>The token to advance to the next page of results from your request.</p>
/// <p>To get a page token, perform an initial <code>GetInstances</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
pub fn set_page_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.page_token = input;
self
}
/// <p>The token to advance to the next page of results from your request.</p>
/// <p>To get a page token, perform an initial <code>GetInstances</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
pub fn get_page_token(&self) -> &::std::option::Option<::std::string::String> {
&self.page_token
}
/// Consumes the builder and constructs a [`GetInstancesInput`](crate::operation::get_instances::GetInstancesInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_instances::GetInstancesInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_instances::GetInstancesInput { page_token: self.page_token })
}
}