aws_sdk_partnercentralchannel/client/
get_relationship.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetRelationship`](crate::operation::get_relationship::builders::GetRelationshipFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`catalog(impl Into<String>)`](crate::operation::get_relationship::builders::GetRelationshipFluentBuilder::catalog) / [`set_catalog(Option<String>)`](crate::operation::get_relationship::builders::GetRelationshipFluentBuilder::set_catalog):<br>required: **true**<br><p>The catalog identifier for the relationship.</p><br>
7    ///   - [`program_management_account_identifier(impl Into<String>)`](crate::operation::get_relationship::builders::GetRelationshipFluentBuilder::program_management_account_identifier) / [`set_program_management_account_identifier(Option<String>)`](crate::operation::get_relationship::builders::GetRelationshipFluentBuilder::set_program_management_account_identifier):<br>required: **true**<br><p>The identifier of the program management account associated with the relationship.</p><br>
8    ///   - [`identifier(impl Into<String>)`](crate::operation::get_relationship::builders::GetRelationshipFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_relationship::builders::GetRelationshipFluentBuilder::set_identifier):<br>required: **true**<br><p>The unique identifier of the relationship to retrieve.</p><br>
9    /// - On success, responds with [`GetRelationshipOutput`](crate::operation::get_relationship::GetRelationshipOutput) with field(s):
10    ///   - [`relationship_detail(Option<RelationshipDetail>)`](crate::operation::get_relationship::GetRelationshipOutput::relationship_detail): <p>Details of the requested relationship.</p>
11    /// - On failure, responds with [`SdkError<GetRelationshipError>`](crate::operation::get_relationship::GetRelationshipError)
12    pub fn get_relationship(&self) -> crate::operation::get_relationship::builders::GetRelationshipFluentBuilder {
13        crate::operation::get_relationship::builders::GetRelationshipFluentBuilder::new(self.handle.clone())
14    }
15}