Struct aws_sdk_ecs::operation::list_services_by_namespace::builders::ListServicesByNamespaceInputBuilder
source · #[non_exhaustive]pub struct ListServicesByNamespaceInputBuilder { /* private fields */ }
Expand description
A builder for ListServicesByNamespaceInput
.
Implementations§
source§impl ListServicesByNamespaceInputBuilder
impl ListServicesByNamespaceInputBuilder
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace to list the services in.
Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
This field is required.sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace to list the services in.
Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
sourcepub fn get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &Option<String>
The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace to list the services in.
Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The nextToken
value that's returned from a ListServicesByNamespace
request. It indicates that more results are available to fulfill the request and further calls are needed. If maxResults
is returned, it is possible the number of results is less than maxResults
.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The nextToken
value that's returned from a ListServicesByNamespace
request. It indicates that more results are available to fulfill the request and further calls are needed. If maxResults
is returned, it is possible the number of results is less than maxResults
.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The nextToken
value that's returned from a ListServicesByNamespace
request. It indicates that more results are available to fulfill the request and further calls are needed. If maxResults
is returned, it is possible the number of results is less than maxResults
.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of service results that ListServicesByNamespace
returns in paginated output. When this parameter is used, ListServicesByNamespace
only returns maxResults
results in a single page along with a nextToken
response element. The remaining results of the initial request can be seen by sending another ListServicesByNamespace
request with the returned nextToken
value. This value can be between 1 and 100. If this parameter isn't used, then ListServicesByNamespace
returns up to 10 results and a nextToken
value if applicable.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of service results that ListServicesByNamespace
returns in paginated output. When this parameter is used, ListServicesByNamespace
only returns maxResults
results in a single page along with a nextToken
response element. The remaining results of the initial request can be seen by sending another ListServicesByNamespace
request with the returned nextToken
value. This value can be between 1 and 100. If this parameter isn't used, then ListServicesByNamespace
returns up to 10 results and a nextToken
value if applicable.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of service results that ListServicesByNamespace
returns in paginated output. When this parameter is used, ListServicesByNamespace
only returns maxResults
results in a single page along with a nextToken
response element. The remaining results of the initial request can be seen by sending another ListServicesByNamespace
request with the returned nextToken
value. This value can be between 1 and 100. If this parameter isn't used, then ListServicesByNamespace
returns up to 10 results and a nextToken
value if applicable.
sourcepub fn build(self) -> Result<ListServicesByNamespaceInput, BuildError>
pub fn build(self) -> Result<ListServicesByNamespaceInput, BuildError>
Consumes the builder and constructs a ListServicesByNamespaceInput
.
source§impl ListServicesByNamespaceInputBuilder
impl ListServicesByNamespaceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListServicesByNamespaceOutput, SdkError<ListServicesByNamespaceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListServicesByNamespaceOutput, SdkError<ListServicesByNamespaceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListServicesByNamespaceInputBuilder
impl Clone for ListServicesByNamespaceInputBuilder
source§fn clone(&self) -> ListServicesByNamespaceInputBuilder
fn clone(&self) -> ListServicesByNamespaceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ListServicesByNamespaceInputBuilder
impl Default for ListServicesByNamespaceInputBuilder
source§fn default() -> ListServicesByNamespaceInputBuilder
fn default() -> ListServicesByNamespaceInputBuilder
source§impl PartialEq for ListServicesByNamespaceInputBuilder
impl PartialEq for ListServicesByNamespaceInputBuilder
source§fn eq(&self, other: &ListServicesByNamespaceInputBuilder) -> bool
fn eq(&self, other: &ListServicesByNamespaceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.