aws_sdk_neptunegraph/operation/update_graph/_update_graph_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateGraphInput {
6 /// <p>The unique identifier of the Neptune Analytics graph.</p>
7 pub graph_identifier: ::std::option::Option<::std::string::String>,
8 /// <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable.</p>
9 pub public_connectivity: ::std::option::Option<bool>,
10 /// <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
11 /// <p>Min = 16</p>
12 pub provisioned_memory: ::std::option::Option<i32>,
13 /// <p>A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.</p>
14 pub deletion_protection: ::std::option::Option<bool>,
15}
16impl UpdateGraphInput {
17 /// <p>The unique identifier of the Neptune Analytics graph.</p>
18 pub fn graph_identifier(&self) -> ::std::option::Option<&str> {
19 self.graph_identifier.as_deref()
20 }
21 /// <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable.</p>
22 pub fn public_connectivity(&self) -> ::std::option::Option<bool> {
23 self.public_connectivity
24 }
25 /// <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
26 /// <p>Min = 16</p>
27 pub fn provisioned_memory(&self) -> ::std::option::Option<i32> {
28 self.provisioned_memory
29 }
30 /// <p>A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.</p>
31 pub fn deletion_protection(&self) -> ::std::option::Option<bool> {
32 self.deletion_protection
33 }
34}
35impl UpdateGraphInput {
36 /// Creates a new builder-style object to manufacture [`UpdateGraphInput`](crate::operation::update_graph::UpdateGraphInput).
37 pub fn builder() -> crate::operation::update_graph::builders::UpdateGraphInputBuilder {
38 crate::operation::update_graph::builders::UpdateGraphInputBuilder::default()
39 }
40}
41
42/// A builder for [`UpdateGraphInput`](crate::operation::update_graph::UpdateGraphInput).
43#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
44#[non_exhaustive]
45pub struct UpdateGraphInputBuilder {
46 pub(crate) graph_identifier: ::std::option::Option<::std::string::String>,
47 pub(crate) public_connectivity: ::std::option::Option<bool>,
48 pub(crate) provisioned_memory: ::std::option::Option<i32>,
49 pub(crate) deletion_protection: ::std::option::Option<bool>,
50}
51impl UpdateGraphInputBuilder {
52 /// <p>The unique identifier of the Neptune Analytics graph.</p>
53 /// This field is required.
54 pub fn graph_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
55 self.graph_identifier = ::std::option::Option::Some(input.into());
56 self
57 }
58 /// <p>The unique identifier of the Neptune Analytics graph.</p>
59 pub fn set_graph_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
60 self.graph_identifier = input;
61 self
62 }
63 /// <p>The unique identifier of the Neptune Analytics graph.</p>
64 pub fn get_graph_identifier(&self) -> &::std::option::Option<::std::string::String> {
65 &self.graph_identifier
66 }
67 /// <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable.</p>
68 pub fn public_connectivity(mut self, input: bool) -> Self {
69 self.public_connectivity = ::std::option::Option::Some(input);
70 self
71 }
72 /// <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable.</p>
73 pub fn set_public_connectivity(mut self, input: ::std::option::Option<bool>) -> Self {
74 self.public_connectivity = input;
75 self
76 }
77 /// <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable.</p>
78 pub fn get_public_connectivity(&self) -> &::std::option::Option<bool> {
79 &self.public_connectivity
80 }
81 /// <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
82 /// <p>Min = 16</p>
83 pub fn provisioned_memory(mut self, input: i32) -> Self {
84 self.provisioned_memory = ::std::option::Option::Some(input);
85 self
86 }
87 /// <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
88 /// <p>Min = 16</p>
89 pub fn set_provisioned_memory(mut self, input: ::std::option::Option<i32>) -> Self {
90 self.provisioned_memory = input;
91 self
92 }
93 /// <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
94 /// <p>Min = 16</p>
95 pub fn get_provisioned_memory(&self) -> &::std::option::Option<i32> {
96 &self.provisioned_memory
97 }
98 /// <p>A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.</p>
99 pub fn deletion_protection(mut self, input: bool) -> Self {
100 self.deletion_protection = ::std::option::Option::Some(input);
101 self
102 }
103 /// <p>A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.</p>
104 pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
105 self.deletion_protection = input;
106 self
107 }
108 /// <p>A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.</p>
109 pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
110 &self.deletion_protection
111 }
112 /// Consumes the builder and constructs a [`UpdateGraphInput`](crate::operation::update_graph::UpdateGraphInput).
113 pub fn build(self) -> ::std::result::Result<crate::operation::update_graph::UpdateGraphInput, ::aws_smithy_types::error::operation::BuildError> {
114 ::std::result::Result::Ok(crate::operation::update_graph::UpdateGraphInput {
115 graph_identifier: self.graph_identifier,
116 public_connectivity: self.public_connectivity,
117 provisioned_memory: self.provisioned_memory,
118 deletion_protection: self.deletion_protection,
119 })
120 }
121}