ValidatorUtils.checkArgument(isTrue,"click type should be one of 1: customize action, 2: open url, 3: open app, 4: open rich media");
switch(this.type){
case1:
ValidatorUtils.checkArgument(StringUtils.isNotEmpty(this.intent)||StringUtils.isNotEmpty(this.action),"intent or action is required when click type=1");
break;
case2:
ValidatorUtils.checkArgument(StringUtils.isNotEmpty(this.url),"url is required when click type=2");
ValidatorUtils.checkArgument(this.url.matches(PATTERN),"url must start with https");
break;
case4:
ValidatorUtils.checkArgument(StringUtils.isNotEmpty(this.rich_resource),"richResource is required when click type=4");
ValidatorUtils.checkArgument(this.rich_resource.matches(PATTERN),"richResource must start with https");