#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchWriteOperationResponse {
pub create_object: ::std::option::Option<crate::types::BatchCreateObjectResponse>,
pub attach_object: ::std::option::Option<crate::types::BatchAttachObjectResponse>,
pub detach_object: ::std::option::Option<crate::types::BatchDetachObjectResponse>,
pub update_object_attributes: ::std::option::Option<crate::types::BatchUpdateObjectAttributesResponse>,
pub delete_object: ::std::option::Option<crate::types::BatchDeleteObjectResponse>,
pub add_facet_to_object: ::std::option::Option<crate::types::BatchAddFacetToObjectResponse>,
pub remove_facet_from_object: ::std::option::Option<crate::types::BatchRemoveFacetFromObjectResponse>,
pub attach_policy: ::std::option::Option<crate::types::BatchAttachPolicyResponse>,
pub detach_policy: ::std::option::Option<crate::types::BatchDetachPolicyResponse>,
pub create_index: ::std::option::Option<crate::types::BatchCreateIndexResponse>,
pub attach_to_index: ::std::option::Option<crate::types::BatchAttachToIndexResponse>,
pub detach_from_index: ::std::option::Option<crate::types::BatchDetachFromIndexResponse>,
pub attach_typed_link: ::std::option::Option<crate::types::BatchAttachTypedLinkResponse>,
pub detach_typed_link: ::std::option::Option<crate::types::BatchDetachTypedLinkResponse>,
pub update_link_attributes: ::std::option::Option<crate::types::BatchUpdateLinkAttributesResponse>,
}
impl BatchWriteOperationResponse {
pub fn create_object(&self) -> ::std::option::Option<&crate::types::BatchCreateObjectResponse> {
self.create_object.as_ref()
}
pub fn attach_object(&self) -> ::std::option::Option<&crate::types::BatchAttachObjectResponse> {
self.attach_object.as_ref()
}
pub fn detach_object(&self) -> ::std::option::Option<&crate::types::BatchDetachObjectResponse> {
self.detach_object.as_ref()
}
pub fn update_object_attributes(&self) -> ::std::option::Option<&crate::types::BatchUpdateObjectAttributesResponse> {
self.update_object_attributes.as_ref()
}
pub fn delete_object(&self) -> ::std::option::Option<&crate::types::BatchDeleteObjectResponse> {
self.delete_object.as_ref()
}
pub fn add_facet_to_object(&self) -> ::std::option::Option<&crate::types::BatchAddFacetToObjectResponse> {
self.add_facet_to_object.as_ref()
}
pub fn remove_facet_from_object(&self) -> ::std::option::Option<&crate::types::BatchRemoveFacetFromObjectResponse> {
self.remove_facet_from_object.as_ref()
}
pub fn attach_policy(&self) -> ::std::option::Option<&crate::types::BatchAttachPolicyResponse> {
self.attach_policy.as_ref()
}
pub fn detach_policy(&self) -> ::std::option::Option<&crate::types::BatchDetachPolicyResponse> {
self.detach_policy.as_ref()
}
pub fn create_index(&self) -> ::std::option::Option<&crate::types::BatchCreateIndexResponse> {
self.create_index.as_ref()
}
pub fn attach_to_index(&self) -> ::std::option::Option<&crate::types::BatchAttachToIndexResponse> {
self.attach_to_index.as_ref()
}
pub fn detach_from_index(&self) -> ::std::option::Option<&crate::types::BatchDetachFromIndexResponse> {
self.detach_from_index.as_ref()
}
pub fn attach_typed_link(&self) -> ::std::option::Option<&crate::types::BatchAttachTypedLinkResponse> {
self.attach_typed_link.as_ref()
}
pub fn detach_typed_link(&self) -> ::std::option::Option<&crate::types::BatchDetachTypedLinkResponse> {
self.detach_typed_link.as_ref()
}
pub fn update_link_attributes(&self) -> ::std::option::Option<&crate::types::BatchUpdateLinkAttributesResponse> {
self.update_link_attributes.as_ref()
}
}
impl BatchWriteOperationResponse {
pub fn builder() -> crate::types::builders::BatchWriteOperationResponseBuilder {
crate::types::builders::BatchWriteOperationResponseBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct BatchWriteOperationResponseBuilder {
pub(crate) create_object: ::std::option::Option<crate::types::BatchCreateObjectResponse>,
pub(crate) attach_object: ::std::option::Option<crate::types::BatchAttachObjectResponse>,
pub(crate) detach_object: ::std::option::Option<crate::types::BatchDetachObjectResponse>,
pub(crate) update_object_attributes: ::std::option::Option<crate::types::BatchUpdateObjectAttributesResponse>,
pub(crate) delete_object: ::std::option::Option<crate::types::BatchDeleteObjectResponse>,
pub(crate) add_facet_to_object: ::std::option::Option<crate::types::BatchAddFacetToObjectResponse>,
pub(crate) remove_facet_from_object: ::std::option::Option<crate::types::BatchRemoveFacetFromObjectResponse>,
pub(crate) attach_policy: ::std::option::Option<crate::types::BatchAttachPolicyResponse>,
pub(crate) detach_policy: ::std::option::Option<crate::types::BatchDetachPolicyResponse>,
pub(crate) create_index: ::std::option::Option<crate::types::BatchCreateIndexResponse>,
pub(crate) attach_to_index: ::std::option::Option<crate::types::BatchAttachToIndexResponse>,
pub(crate) detach_from_index: ::std::option::Option<crate::types::BatchDetachFromIndexResponse>,
pub(crate) attach_typed_link: ::std::option::Option<crate::types::BatchAttachTypedLinkResponse>,
pub(crate) detach_typed_link: ::std::option::Option<crate::types::BatchDetachTypedLinkResponse>,
pub(crate) update_link_attributes: ::std::option::Option<crate::types::BatchUpdateLinkAttributesResponse>,
}
impl BatchWriteOperationResponseBuilder {
pub fn create_object(mut self, input: crate::types::BatchCreateObjectResponse) -> Self {
self.create_object = ::std::option::Option::Some(input);
self
}
pub fn set_create_object(mut self, input: ::std::option::Option<crate::types::BatchCreateObjectResponse>) -> Self {
self.create_object = input;
self
}
pub fn get_create_object(&self) -> &::std::option::Option<crate::types::BatchCreateObjectResponse> {
&self.create_object
}
pub fn attach_object(mut self, input: crate::types::BatchAttachObjectResponse) -> Self {
self.attach_object = ::std::option::Option::Some(input);
self
}
pub fn set_attach_object(mut self, input: ::std::option::Option<crate::types::BatchAttachObjectResponse>) -> Self {
self.attach_object = input;
self
}
pub fn get_attach_object(&self) -> &::std::option::Option<crate::types::BatchAttachObjectResponse> {
&self.attach_object
}
pub fn detach_object(mut self, input: crate::types::BatchDetachObjectResponse) -> Self {
self.detach_object = ::std::option::Option::Some(input);
self
}
pub fn set_detach_object(mut self, input: ::std::option::Option<crate::types::BatchDetachObjectResponse>) -> Self {
self.detach_object = input;
self
}
pub fn get_detach_object(&self) -> &::std::option::Option<crate::types::BatchDetachObjectResponse> {
&self.detach_object
}
pub fn update_object_attributes(mut self, input: crate::types::BatchUpdateObjectAttributesResponse) -> Self {
self.update_object_attributes = ::std::option::Option::Some(input);
self
}
pub fn set_update_object_attributes(mut self, input: ::std::option::Option<crate::types::BatchUpdateObjectAttributesResponse>) -> Self {
self.update_object_attributes = input;
self
}
pub fn get_update_object_attributes(&self) -> &::std::option::Option<crate::types::BatchUpdateObjectAttributesResponse> {
&self.update_object_attributes
}
pub fn delete_object(mut self, input: crate::types::BatchDeleteObjectResponse) -> Self {
self.delete_object = ::std::option::Option::Some(input);
self
}
pub fn set_delete_object(mut self, input: ::std::option::Option<crate::types::BatchDeleteObjectResponse>) -> Self {
self.delete_object = input;
self
}
pub fn get_delete_object(&self) -> &::std::option::Option<crate::types::BatchDeleteObjectResponse> {
&self.delete_object
}
pub fn add_facet_to_object(mut self, input: crate::types::BatchAddFacetToObjectResponse) -> Self {
self.add_facet_to_object = ::std::option::Option::Some(input);
self
}
pub fn set_add_facet_to_object(mut self, input: ::std::option::Option<crate::types::BatchAddFacetToObjectResponse>) -> Self {
self.add_facet_to_object = input;
self
}
pub fn get_add_facet_to_object(&self) -> &::std::option::Option<crate::types::BatchAddFacetToObjectResponse> {
&self.add_facet_to_object
}
pub fn remove_facet_from_object(mut self, input: crate::types::BatchRemoveFacetFromObjectResponse) -> Self {
self.remove_facet_from_object = ::std::option::Option::Some(input);
self
}
pub fn set_remove_facet_from_object(mut self, input: ::std::option::Option<crate::types::BatchRemoveFacetFromObjectResponse>) -> Self {
self.remove_facet_from_object = input;
self
}
pub fn get_remove_facet_from_object(&self) -> &::std::option::Option<crate::types::BatchRemoveFacetFromObjectResponse> {
&self.remove_facet_from_object
}
pub fn attach_policy(mut self, input: crate::types::BatchAttachPolicyResponse) -> Self {
self.attach_policy = ::std::option::Option::Some(input);
self
}
pub fn set_attach_policy(mut self, input: ::std::option::Option<crate::types::BatchAttachPolicyResponse>) -> Self {
self.attach_policy = input;
self
}
pub fn get_attach_policy(&self) -> &::std::option::Option<crate::types::BatchAttachPolicyResponse> {
&self.attach_policy
}
pub fn detach_policy(mut self, input: crate::types::BatchDetachPolicyResponse) -> Self {
self.detach_policy = ::std::option::Option::Some(input);
self
}
pub fn set_detach_policy(mut self, input: ::std::option::Option<crate::types::BatchDetachPolicyResponse>) -> Self {
self.detach_policy = input;
self
}
pub fn get_detach_policy(&self) -> &::std::option::Option<crate::types::BatchDetachPolicyResponse> {
&self.detach_policy
}
pub fn create_index(mut self, input: crate::types::BatchCreateIndexResponse) -> Self {
self.create_index = ::std::option::Option::Some(input);
self
}
pub fn set_create_index(mut self, input: ::std::option::Option<crate::types::BatchCreateIndexResponse>) -> Self {
self.create_index = input;
self
}
pub fn get_create_index(&self) -> &::std::option::Option<crate::types::BatchCreateIndexResponse> {
&self.create_index
}
pub fn attach_to_index(mut self, input: crate::types::BatchAttachToIndexResponse) -> Self {
self.attach_to_index = ::std::option::Option::Some(input);
self
}
pub fn set_attach_to_index(mut self, input: ::std::option::Option<crate::types::BatchAttachToIndexResponse>) -> Self {
self.attach_to_index = input;
self
}
pub fn get_attach_to_index(&self) -> &::std::option::Option<crate::types::BatchAttachToIndexResponse> {
&self.attach_to_index
}
pub fn detach_from_index(mut self, input: crate::types::BatchDetachFromIndexResponse) -> Self {
self.detach_from_index = ::std::option::Option::Some(input);
self
}
pub fn set_detach_from_index(mut self, input: ::std::option::Option<crate::types::BatchDetachFromIndexResponse>) -> Self {
self.detach_from_index = input;
self
}
pub fn get_detach_from_index(&self) -> &::std::option::Option<crate::types::BatchDetachFromIndexResponse> {
&self.detach_from_index
}
pub fn attach_typed_link(mut self, input: crate::types::BatchAttachTypedLinkResponse) -> Self {
self.attach_typed_link = ::std::option::Option::Some(input);
self
}
pub fn set_attach_typed_link(mut self, input: ::std::option::Option<crate::types::BatchAttachTypedLinkResponse>) -> Self {
self.attach_typed_link = input;
self
}
pub fn get_attach_typed_link(&self) -> &::std::option::Option<crate::types::BatchAttachTypedLinkResponse> {
&self.attach_typed_link
}
pub fn detach_typed_link(mut self, input: crate::types::BatchDetachTypedLinkResponse) -> Self {
self.detach_typed_link = ::std::option::Option::Some(input);
self
}
pub fn set_detach_typed_link(mut self, input: ::std::option::Option<crate::types::BatchDetachTypedLinkResponse>) -> Self {
self.detach_typed_link = input;
self
}
pub fn get_detach_typed_link(&self) -> &::std::option::Option<crate::types::BatchDetachTypedLinkResponse> {
&self.detach_typed_link
}
pub fn update_link_attributes(mut self, input: crate::types::BatchUpdateLinkAttributesResponse) -> Self {
self.update_link_attributes = ::std::option::Option::Some(input);
self
}
pub fn set_update_link_attributes(mut self, input: ::std::option::Option<crate::types::BatchUpdateLinkAttributesResponse>) -> Self {
self.update_link_attributes = input;
self
}
pub fn get_update_link_attributes(&self) -> &::std::option::Option<crate::types::BatchUpdateLinkAttributesResponse> {
&self.update_link_attributes
}
pub fn build(self) -> crate::types::BatchWriteOperationResponse {
crate::types::BatchWriteOperationResponse {
create_object: self.create_object,
attach_object: self.attach_object,
detach_object: self.detach_object,
update_object_attributes: self.update_object_attributes,
delete_object: self.delete_object,
add_facet_to_object: self.add_facet_to_object,
remove_facet_from_object: self.remove_facet_from_object,
attach_policy: self.attach_policy,
detach_policy: self.detach_policy,
create_index: self.create_index,
attach_to_index: self.attach_to_index,
detach_from_index: self.detach_from_index,
attach_typed_link: self.attach_typed_link,
detach_typed_link: self.detach_typed_link,
update_link_attributes: self.update_link_attributes,
}
}
}