code: public void setRules(Collection<ServerSideEncryptionRule> rules) {
          if (rules == null) {
              this.rules = null;
              return;
          }
  
          this.rules = new ArrayList<ServerSideEncryptionRule>(rules);
      }
docs: Sets the list of SSE configuration rules.
  
  @param rules New rules.