code: public ServerSideEncryptionConfiguration withRules(ServerSideEncryptionRule... rules) {
          if (this.rules == null) {
              setRules(new ArrayList<ServerSideEncryptionRule>(rules.length));
          }
          for (ServerSideEncryptionRule ele : rules) {
              this.rules.add(ele);
          }
          return this;
      }
docs: Sets the list of SSE configuration rules.
  
  @param rules New rules.
  @return This object for method chaining.