code: public void setAlarms(java.util.Collection<Alarm> alarms) {
          if (alarms == null) {
              this.alarms = null;
              return;
          }
  
          this.alarms = new com.amazonaws.internal.SdkInternalList<Alarm>(alarms);
      }
docs: <p>
  The CloudWatch alarms related to the policy.
  </p>
  
  @param alarms
  The CloudWatch alarms related to the policy.