public override void Check()
{
if ((PublicIds == null || PublicIds.Count == 0) &&
String.IsNullOrEmpty(Prefix) &&
String.IsNullOrEmpty(Tag) &&
!All)
{
throw new ArgumentException("Either PublicIds or Prefix or Tag must be specified!");
}
if (!String.IsNullOrEmpty(Tag) && !String.IsNullOrEmpty(Type))
throw new ArgumentException("Type of resource cannot specified when tag is given!");
}