#[non_exhaustive]pub struct CreateMirroringEndpointGroupAssociationRequest {
pub parent: String,
pub mirroring_endpoint_group_association_id: String,
pub mirroring_endpoint_group_association: Option<MirroringEndpointGroupAssociation>,
pub request_id: String,
/* private fields */
}Expand description
Request message for CreateMirroringEndpointGroupAssociation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent resource where this association will be created. Format: projects/{project}/locations/{location}
mirroring_endpoint_group_association_id: StringOptional. The ID to use for the new association, which will become the final component of the endpoint group’s resource name. If not provided, the server will generate a unique ID.
mirroring_endpoint_group_association: Option<MirroringEndpointGroupAssociation>Required. The association to create.
request_id: StringOptional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a request_id is provided.
See https://google.aip.dev/155 for more details.
Implementations§
Source§impl CreateMirroringEndpointGroupAssociationRequest
impl CreateMirroringEndpointGroupAssociationRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_mirroring_endpoint_group_association_id<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_mirroring_endpoint_group_association_id<T: Into<String>>( self, v: T, ) -> Self
Sets the value of mirroring_endpoint_group_association_id.
§Example
let x = CreateMirroringEndpointGroupAssociationRequest::new().set_mirroring_endpoint_group_association_id("example");Sourcepub fn set_mirroring_endpoint_group_association<T>(self, v: T) -> Selfwhere
T: Into<MirroringEndpointGroupAssociation>,
pub fn set_mirroring_endpoint_group_association<T>(self, v: T) -> Selfwhere
T: Into<MirroringEndpointGroupAssociation>,
Sets the value of mirroring_endpoint_group_association.
§Example
use google_cloud_networksecurity_v1::model::MirroringEndpointGroupAssociation;
let x = CreateMirroringEndpointGroupAssociationRequest::new().set_mirroring_endpoint_group_association(MirroringEndpointGroupAssociation::default()/* use setters */);Sourcepub fn set_or_clear_mirroring_endpoint_group_association<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<MirroringEndpointGroupAssociation>,
pub fn set_or_clear_mirroring_endpoint_group_association<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<MirroringEndpointGroupAssociation>,
Sets or clears the value of mirroring_endpoint_group_association.
§Example
use google_cloud_networksecurity_v1::model::MirroringEndpointGroupAssociation;
let x = CreateMirroringEndpointGroupAssociationRequest::new().set_or_clear_mirroring_endpoint_group_association(Some(MirroringEndpointGroupAssociation::default()/* use setters */));
let x = CreateMirroringEndpointGroupAssociationRequest::new().set_or_clear_mirroring_endpoint_group_association(None::<MirroringEndpointGroupAssociation>);Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
§Example
let x = CreateMirroringEndpointGroupAssociationRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for CreateMirroringEndpointGroupAssociationRequest
impl Clone for CreateMirroringEndpointGroupAssociationRequest
Source§fn clone(&self) -> CreateMirroringEndpointGroupAssociationRequest
fn clone(&self) -> CreateMirroringEndpointGroupAssociationRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CreateMirroringEndpointGroupAssociationRequest
impl Default for CreateMirroringEndpointGroupAssociationRequest
Source§fn default() -> CreateMirroringEndpointGroupAssociationRequest
fn default() -> CreateMirroringEndpointGroupAssociationRequest
impl StructuralPartialEq for CreateMirroringEndpointGroupAssociationRequest
Auto Trait Implementations§
impl Freeze for CreateMirroringEndpointGroupAssociationRequest
impl RefUnwindSafe for CreateMirroringEndpointGroupAssociationRequest
impl Send for CreateMirroringEndpointGroupAssociationRequest
impl Sync for CreateMirroringEndpointGroupAssociationRequest
impl Unpin for CreateMirroringEndpointGroupAssociationRequest
impl UnsafeUnpin for CreateMirroringEndpointGroupAssociationRequest
impl UnwindSafe for CreateMirroringEndpointGroupAssociationRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request