private void validateIamRoles(List<IamRole> iamRoles){
  Assert.notNull(iamRoles,"At least 1 IAM roles must be specified");
  Assert.isTrue(iamRoles.size() > 0,"At least 1 IAM roles must be specified");
  for (  IamRole iamRole : iamRoles) {
    Assert.notNull(iamRole,"IAM role must be specified");
    Assert.hasText(iamRole.getIamRoleName(),"IAM role name must be specified");
  }
}

private void validateIamRoles ( List < IamRole > iamRoles ) { Assert . notNull ( iamRoles , "At least 1 IAM roles must be specified" ) ; Assert . isTrue ( iamRoles . size ( ) > 0 , "At least 1 IAM roles must be specified" ) ; for ( IamRole iamRole : iamRoles ) { Assert . notNull ( iamRole , "IAM role must be specified" ) ; Assert . hasText ( iamRole . getIamRoleName ( ) , "IAM role name must be specified" ) ; } }
asserts that the given iam roles are valid as a user input . the iam roles are valid if not null , not empty , and each element ' s name is not null and not blank .
