pub struct Builder { /* private fields */ }Expand description
A builder for PlacementTemplate.
Implementations§
source§impl Builder
impl Builder
sourcepub fn default_attributes(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn default_attributes(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
Adds a key-value pair to default_attributes.
To override the contents of this collection use set_default_attributes.
The default attributes (key/value pairs) to be applied to all placements using this template.
sourcepub fn set_default_attributes(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_default_attributes(
self,
input: Option<HashMap<String, String>>
) -> Self
The default attributes (key/value pairs) to be applied to all placements using this template.
sourcepub fn device_templates(self, k: impl Into<String>, v: DeviceTemplate) -> Self
pub fn device_templates(self, k: impl Into<String>, v: DeviceTemplate) -> Self
Adds a key-value pair to device_templates.
To override the contents of this collection use set_device_templates.
An object specifying the DeviceTemplate for all placements using this (PlacementTemplate) template.
sourcepub fn set_device_templates(
self,
input: Option<HashMap<String, DeviceTemplate>>
) -> Self
pub fn set_device_templates(
self,
input: Option<HashMap<String, DeviceTemplate>>
) -> Self
An object specifying the DeviceTemplate for all placements using this (PlacementTemplate) template.
sourcepub fn build(self) -> PlacementTemplate
pub fn build(self) -> PlacementTemplate
Consumes the builder and constructs a PlacementTemplate.