SecuritySettings constructor

SecuritySettings({
  1. String? name,
  2. String? displayName,
  3. SecuritySettings_RedactionStrategy? redactionStrategy,
  4. SecuritySettings_RedactionScope? redactionScope,
  5. int? retentionWindowDays,
  6. Iterable<SecuritySettings_PurgeDataType>? purgeDataTypes,
  7. String? inspectTemplate,
})

Implementation

factory SecuritySettings({
  $core.String? name,
  $core.String? displayName,
  SecuritySettings_RedactionStrategy? redactionStrategy,
  SecuritySettings_RedactionScope? redactionScope,
  $core.int? retentionWindowDays,
  $core.Iterable<SecuritySettings_PurgeDataType>? purgeDataTypes,
  $core.String? inspectTemplate,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (redactionStrategy != null) {
    _result.redactionStrategy = redactionStrategy;
  }
  if (redactionScope != null) {
    _result.redactionScope = redactionScope;
  }
  if (retentionWindowDays != null) {
    _result.retentionWindowDays = retentionWindowDays;
  }
  if (purgeDataTypes != null) {
    _result.purgeDataTypes.addAll(purgeDataTypes);
  }
  if (inspectTemplate != null) {
    _result.inspectTemplate = inspectTemplate;
  }
  return _result;
}