pub struct ResourcePolicyArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> ResourcePolicyArgsBuilder<S>
impl<S: State> ResourcePolicyArgsBuilder<S>
sourcepub fn build_struct(self) -> ResourcePolicyArgswhere
S: IsComplete,
pub fn build_struct(self) -> ResourcePolicyArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> ResourcePolicyArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> ResourcePolicyArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ResourcePolicyArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ResourcePolicyArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn disk_consistency_group_policy(
self,
value: impl Into<Output<Option<ResourcePolicyDiskConsistencyGroupPolicy>>>,
) -> ResourcePolicyArgsBuilder<SetDiskConsistencyGroupPolicy<S>>where
S::DiskConsistencyGroupPolicy: IsUnset,
pub fn disk_consistency_group_policy(
self,
value: impl Into<Output<Option<ResourcePolicyDiskConsistencyGroupPolicy>>>,
) -> ResourcePolicyArgsBuilder<SetDiskConsistencyGroupPolicy<S>>where
S::DiskConsistencyGroupPolicy: IsUnset,
sourcepub fn maybe_disk_consistency_group_policy(
self,
value: Option<impl Into<Output<Option<ResourcePolicyDiskConsistencyGroupPolicy>>>>,
) -> ResourcePolicyArgsBuilder<SetDiskConsistencyGroupPolicy<S>>where
S::DiskConsistencyGroupPolicy: IsUnset,
pub fn maybe_disk_consistency_group_policy(
self,
value: Option<impl Into<Output<Option<ResourcePolicyDiskConsistencyGroupPolicy>>>>,
) -> ResourcePolicyArgsBuilder<SetDiskConsistencyGroupPolicy<S>>where
S::DiskConsistencyGroupPolicy: IsUnset,
sourcepub fn group_placement_policy(
self,
value: impl Into<Output<Option<ResourcePolicyGroupPlacementPolicy>>>,
) -> ResourcePolicyArgsBuilder<SetGroupPlacementPolicy<S>>where
S::GroupPlacementPolicy: IsUnset,
pub fn group_placement_policy(
self,
value: impl Into<Output<Option<ResourcePolicyGroupPlacementPolicy>>>,
) -> ResourcePolicyArgsBuilder<SetGroupPlacementPolicy<S>>where
S::GroupPlacementPolicy: IsUnset,
sourcepub fn maybe_group_placement_policy(
self,
value: Option<impl Into<Output<Option<ResourcePolicyGroupPlacementPolicy>>>>,
) -> ResourcePolicyArgsBuilder<SetGroupPlacementPolicy<S>>where
S::GroupPlacementPolicy: IsUnset,
pub fn maybe_group_placement_policy(
self,
value: Option<impl Into<Output<Option<ResourcePolicyGroupPlacementPolicy>>>>,
) -> ResourcePolicyArgsBuilder<SetGroupPlacementPolicy<S>>where
S::GroupPlacementPolicy: IsUnset,
sourcepub fn instance_schedule_policy(
self,
value: impl Into<Output<Option<ResourcePolicyInstanceSchedulePolicy>>>,
) -> ResourcePolicyArgsBuilder<SetInstanceSchedulePolicy<S>>where
S::InstanceSchedulePolicy: IsUnset,
pub fn instance_schedule_policy(
self,
value: impl Into<Output<Option<ResourcePolicyInstanceSchedulePolicy>>>,
) -> ResourcePolicyArgsBuilder<SetInstanceSchedulePolicy<S>>where
S::InstanceSchedulePolicy: IsUnset,
sourcepub fn maybe_instance_schedule_policy(
self,
value: Option<impl Into<Output<Option<ResourcePolicyInstanceSchedulePolicy>>>>,
) -> ResourcePolicyArgsBuilder<SetInstanceSchedulePolicy<S>>where
S::InstanceSchedulePolicy: IsUnset,
pub fn maybe_instance_schedule_policy(
self,
value: Option<impl Into<Output<Option<ResourcePolicyInstanceSchedulePolicy>>>>,
) -> ResourcePolicyArgsBuilder<SetInstanceSchedulePolicy<S>>where
S::InstanceSchedulePolicy: IsUnset,
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> ResourcePolicyArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> ResourcePolicyArgsBuilder<SetName<S>>where
S::Name: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The name of the resource, provided by the client when initially creating
the resource. The resource name must be 1-63 characters long, and comply
with RFC1035. Specifically, the name must be 1-63 characters long and
match the regular expression a-z
? which means the
first character must be a lowercase letter, and all following characters
must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash.
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ResourcePolicyArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ResourcePolicyArgsBuilder<SetName<S>>where
S::Name: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The name of the resource, provided by the client when initially creating
the resource. The resource name must be 1-63 characters long, and comply
with RFC1035. Specifically, the name must be 1-63 characters long and
match the regular expression a-z
? which means the
first character must be a lowercase letter, and all following characters
must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash.