code: public void setResourcePartition(java.util.Collection<StringFilter> resourcePartition) {
          if (resourcePartition == null) {
              this.resourcePartition = null;
              return;
          }
  
          this.resourcePartition = new java.util.ArrayList<StringFilter>(resourcePartition);
      }
docs: <p>
  The canonical AWS partition name to which the region is assigned.
  </p>
  
  @param resourcePartition
  The canonical AWS partition name to which the region is assigned.