Beispiel #1
0
        /// <summary>Grant permission to a predefined Amazon S3 group.</summary>
        /// <param name="group">One of Amazon's predefined groups</param>
        public AclBuilder AddGroup(PredefinedGroup group)
        {
            string?groupStr = group.AsString(EnumFormat.EnumMemberValue);

            Validator.RequireNotNull(groupStr, nameof(group), "Bug: PredefinedGroup is missing EnumValue");

            return(AddGroup(groupStr !));
        }
Beispiel #2
0
 /// <summary>Grant permission to a predefined Amazon S3 group.</summary>
 /// <param name="group">One of Amazon's predefined groups</param>
 public AclBuilder AddGroup(PredefinedGroup group)
 {
     return(AddGroup(group.AsString(EnumFormat.EnumMemberValue)));
 }