#[non_exhaustive]pub struct SnapshotFileSheetSelectionBuilder { /* private fields */ }Expand description
A builder for SnapshotFileSheetSelection.
Implementations§
source§impl SnapshotFileSheetSelectionBuilder
impl SnapshotFileSheetSelectionBuilder
sourcepub fn sheet_id(self, input: impl Into<String>) -> Self
pub fn sheet_id(self, input: impl Into<String>) -> Self
The sheet ID of the dashboard to generate the snapshot artifact from. This value is required for CSV, Excel, and PDF format types.
This field is required.sourcepub fn set_sheet_id(self, input: Option<String>) -> Self
pub fn set_sheet_id(self, input: Option<String>) -> Self
The sheet ID of the dashboard to generate the snapshot artifact from. This value is required for CSV, Excel, and PDF format types.
sourcepub fn get_sheet_id(&self) -> &Option<String>
pub fn get_sheet_id(&self) -> &Option<String>
The sheet ID of the dashboard to generate the snapshot artifact from. This value is required for CSV, Excel, and PDF format types.
sourcepub fn selection_scope(self, input: SnapshotFileSheetSelectionScope) -> Self
pub fn selection_scope(self, input: SnapshotFileSheetSelectionScope) -> Self
The selection scope of the visuals on a sheet of a dashboard that you are generating a snapthot of. You can choose one of the following options.
-
ALL_VISUALS- Selects all visuals that are on the sheet. This value is required if the snapshot is a PDF. -
SELECTED_VISUALS- Select the visual that you want to add to the snapshot. This value is required if the snapshot is a CSV or Excel workbook.
sourcepub fn set_selection_scope(
self,
input: Option<SnapshotFileSheetSelectionScope>
) -> Self
pub fn set_selection_scope( self, input: Option<SnapshotFileSheetSelectionScope> ) -> Self
The selection scope of the visuals on a sheet of a dashboard that you are generating a snapthot of. You can choose one of the following options.
-
ALL_VISUALS- Selects all visuals that are on the sheet. This value is required if the snapshot is a PDF. -
SELECTED_VISUALS- Select the visual that you want to add to the snapshot. This value is required if the snapshot is a CSV or Excel workbook.
sourcepub fn get_selection_scope(&self) -> &Option<SnapshotFileSheetSelectionScope>
pub fn get_selection_scope(&self) -> &Option<SnapshotFileSheetSelectionScope>
The selection scope of the visuals on a sheet of a dashboard that you are generating a snapthot of. You can choose one of the following options.
-
ALL_VISUALS- Selects all visuals that are on the sheet. This value is required if the snapshot is a PDF. -
SELECTED_VISUALS- Select the visual that you want to add to the snapshot. This value is required if the snapshot is a CSV or Excel workbook.
sourcepub fn visual_ids(self, input: impl Into<String>) -> Self
pub fn visual_ids(self, input: impl Into<String>) -> Self
Appends an item to visual_ids.
To override the contents of this collection use set_visual_ids.
A structure that lists the IDs of the visuals in the selected sheet. Supported visual types are table, pivot table visuals. This value is required if you are generating a CSV or Excel workbook. This value supports a maximum of 1 visual ID for CSV and 5 visual IDs across up to 5 sheet selections for Excel. If you are generating an Excel workbook, the order of the visual IDs provided in this structure determines the order of the worksheets in the Excel file.
sourcepub fn set_visual_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_visual_ids(self, input: Option<Vec<String>>) -> Self
A structure that lists the IDs of the visuals in the selected sheet. Supported visual types are table, pivot table visuals. This value is required if you are generating a CSV or Excel workbook. This value supports a maximum of 1 visual ID for CSV and 5 visual IDs across up to 5 sheet selections for Excel. If you are generating an Excel workbook, the order of the visual IDs provided in this structure determines the order of the worksheets in the Excel file.
sourcepub fn get_visual_ids(&self) -> &Option<Vec<String>>
pub fn get_visual_ids(&self) -> &Option<Vec<String>>
A structure that lists the IDs of the visuals in the selected sheet. Supported visual types are table, pivot table visuals. This value is required if you are generating a CSV or Excel workbook. This value supports a maximum of 1 visual ID for CSV and 5 visual IDs across up to 5 sheet selections for Excel. If you are generating an Excel workbook, the order of the visual IDs provided in this structure determines the order of the worksheets in the Excel file.
sourcepub fn build(self) -> Result<SnapshotFileSheetSelection, BuildError>
pub fn build(self) -> Result<SnapshotFileSheetSelection, BuildError>
Consumes the builder and constructs a SnapshotFileSheetSelection.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SnapshotFileSheetSelectionBuilder
impl Clone for SnapshotFileSheetSelectionBuilder
source§fn clone(&self) -> SnapshotFileSheetSelectionBuilder
fn clone(&self) -> SnapshotFileSheetSelectionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SnapshotFileSheetSelectionBuilder
impl Default for SnapshotFileSheetSelectionBuilder
source§fn default() -> SnapshotFileSheetSelectionBuilder
fn default() -> SnapshotFileSheetSelectionBuilder
source§impl PartialEq for SnapshotFileSheetSelectionBuilder
impl PartialEq for SnapshotFileSheetSelectionBuilder
source§fn eq(&self, other: &SnapshotFileSheetSelectionBuilder) -> bool
fn eq(&self, other: &SnapshotFileSheetSelectionBuilder) -> bool
self and other values to be equal, and is used
by ==.