Skip to main content

aws_sdk_eks/types/
_control_plane_placement_request.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The placement configuration for all the control plane instances of your local Amazon EKS cluster on an Amazon Web Services Outpost. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-outposts-capacity-considerations.html">Capacity considerations</a> in the <i>Amazon EKS User Guide</i>.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ControlPlanePlacementRequest {
7    /// <p>The name of the placement group for the Kubernetes control plane instances. This setting can't be changed after cluster creation.</p>
8    pub group_name: ::std::option::Option<::std::string::String>,
9}
10impl ControlPlanePlacementRequest {
11    /// <p>The name of the placement group for the Kubernetes control plane instances. This setting can't be changed after cluster creation.</p>
12    pub fn group_name(&self) -> ::std::option::Option<&str> {
13        self.group_name.as_deref()
14    }
15}
16impl ControlPlanePlacementRequest {
17    /// Creates a new builder-style object to manufacture [`ControlPlanePlacementRequest`](crate::types::ControlPlanePlacementRequest).
18    pub fn builder() -> crate::types::builders::ControlPlanePlacementRequestBuilder {
19        crate::types::builders::ControlPlanePlacementRequestBuilder::default()
20    }
21}
22
23/// A builder for [`ControlPlanePlacementRequest`](crate::types::ControlPlanePlacementRequest).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct ControlPlanePlacementRequestBuilder {
27    pub(crate) group_name: ::std::option::Option<::std::string::String>,
28}
29impl ControlPlanePlacementRequestBuilder {
30    /// <p>The name of the placement group for the Kubernetes control plane instances. This setting can't be changed after cluster creation.</p>
31    pub fn group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
32        self.group_name = ::std::option::Option::Some(input.into());
33        self
34    }
35    /// <p>The name of the placement group for the Kubernetes control plane instances. This setting can't be changed after cluster creation.</p>
36    pub fn set_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
37        self.group_name = input;
38        self
39    }
40    /// <p>The name of the placement group for the Kubernetes control plane instances. This setting can't be changed after cluster creation.</p>
41    pub fn get_group_name(&self) -> &::std::option::Option<::std::string::String> {
42        &self.group_name
43    }
44    /// Consumes the builder and constructs a [`ControlPlanePlacementRequest`](crate::types::ControlPlanePlacementRequest).
45    pub fn build(self) -> crate::types::ControlPlanePlacementRequest {
46        crate::types::ControlPlanePlacementRequest { group_name: self.group_name }
47    }
48}