/**
  * {@inheritdoc}
  * @see Scalr\Service\Aws\Elb.AbstractElbDataType::throwExceptionIfNotInitialized()
  */
 protected function throwExceptionIfNotInitialized()
 {
     parent::throwExceptionIfNotInitialized();
     if ($this->instancePort == null) {
         throw new ElbException('InstancePort property has not been initialized for ' . get_class($this));
     }
 }
Example #2
0
 /**
  * {@inheritdoc}
  * @see Scalr\Service\Aws\Elb.AbstractElbDataType::throwExceptionIfNotInitialized()
  */
 protected function throwExceptionIfNotInitialized()
 {
     parent::throwExceptionIfNotInitialized();
     if (empty($this->instanceId)) {
         throw new ElbException(get_class($this) . ' has not been initialized with instanceId.');
     }
 }
Example #3
0
 /**
  * DeleteLoadBalancerListeners action
  *
  * Deletes listener from the LoadBalancer for the specified port.
  *
  * @return  boolean                Returns TRUE if success
  * @throws  ClientException
  */
 public function delete()
 {
     parent::throwExceptionIfNotInitialized();
     return $this->getElb()->loadBalancer->deleteListeners($this->getLoadBalancerName(), $this->getListener()->loadBalancerPort);
 }
 /**
  * {@inheritdoc}
  * @see Scalr\Service\Aws\Elb.AbstractElbDataType::throwExceptionIfNotInitialized()
  */
 protected function throwExceptionIfNotInitialized()
 {
     parent::throwExceptionIfNotInitialized();
     if ($this->policyName === null) {
         throw new ElbException('policyName has not been set for the ' . get_class($this));
     }
 }