Sets the administrative override for ttl.
@param pri
504344
public void setInTTL_Override(Long ttl) {
    // Check whether changes have been made.
    if ( ((inTTL_Override == null) && (ttl != null)) ||
         ((inTTL_Override != null) && (!inTTL_Override.equals(ttl)))
       ) {
      inTTL_Override = ttl;
      recalcOutTTL();
    }
  }
708268
public void set(final T paramOrigin, final T paramDestination, final boolean paramBool) {
        assert paramOrigin != null;
        assert paramDestination != null;
        if (!mMap.containsKey(paramOrigin)) {
            mMap.put(paramOrigin, new IdentityHashMap<T, Boolean>());
        }

        mMap.get(paramOrigin).put(paramDestination, paramBool);
    }
1051500
public final void setGuaranteedRemoteGetStartTick(long value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setGuaranteedRemoteGetStartTick", Long.valueOf(value));
        getHdr2().setLongField(JsHdr2Access.GUARANTEEDREMOTEGET_SET_STARTTICK, value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setGuaranteedRemoteGetStartTick");
    }
992141
public void setInTTL(long ttl) throws JMSException {
    if (inTTL != ttl) {
      // Now verify that the value for TTL is valid.
      if (ttl < 0 || ttl > MfpConstants.MAX_TIME_TO_LIVE) {
        throw (JMSException) JmsErrorUtils.newThrowable(
           JMSException.class,
           "INVALID_VALUE_CWSIA0301",
           new Object[] {"timeToLive", ""+ttl},
           tc);
      }
      inTTL = ttl;
      recalcOutTTL();
    }
  }
601389
public void setOverrides(java.util.Collection<FleetLaunchTemplateOverrides> overrides) {
        if (overrides == null) {
            this.overrides = null;
            return;
        }

        this.overrides = new com.amazonaws.internal.SdkInternalList<FleetLaunchTemplateOverrides>(overrides);
    }
572159
void setIsIndeterminate(boolean isIndeterminate) {
        if (mIsIndeterminate != isIndeterminate) {
            mIsIndeterminate = isIndeterminate;
            mInputAdapter.setIndeterminate(isIndeterminate);
            notifyDataSetChanged();
        }
    }
244290
public void setRoutingDirective(SipApplicationRoutingDirective directive,
			SipServletRequest origRequest) throws IllegalStateException {
		if(logger.isDebugEnabled()) {
            logger.debug("setRoutingDirective - directive=" + directive + ", origRequest=" + origRequest);
        }

		checkReadOnly();
		SipServletRequestImpl origRequestImpl = (SipServletRequestImpl) origRequest;
		final MobicentsSipSession session = getSipSession();
		//@jean.deruelle Commenting this out, why origRequestImpl.isCommitted() is needed ?
//			if ((directive == SipApplicationRoutingDirective.REVERSE || directive == SipApplicationRoutingDirective.CONTINUE)
//					&& (!origRequestImpl.isInitial() || origRequestImpl.isCommitted())) {
		// If directive is CONTINUE or REVERSE, the parameter origRequest must be an
		//initial request dispatched by the container to this application,
		//i.e. origRequest.isInitial() must be true
		if ((directive == SipApplicationRoutingDirective.REVERSE ||
				directive == SipApplicationRoutingDirective.CONTINUE)){
			if(origRequestImpl == null ||
				!origRequestImpl.isInitial()) {
				if(logger.isDebugEnabled()) {
					logger.debug("directive to set : " + directive);
					logger.debug("Original Request Routing State : " + origRequestImpl.getRoutingState());
				}
				throw new IllegalStateException(
						"Bad state -- cannot set routing directive");
			} else {
				//set AR State Info from previous request
				session.setStateInfo(origRequestImpl.getSipSession().getStateInfo());
				//needed for application composition
				currentApplicationName = origRequestImpl.getCurrentApplicationName();
				//linking the requests
				//FIXME one request can be linked to  many more as for B2BUA
				origRequestImpl.setLinkedRequest(this);
				setLinkedRequest(origRequestImpl);
			}
		} else {
			//This request must be a request created in a new SipSession
			//or from an initial request, and must not have been sent.
			//If any one of these preconditions are not met, the method throws an IllegalStateException.
			Set<Transaction> ongoingTransactions = session.getOngoingTransactions();
			if(!State.INITIAL.equals(session.getState()) && ongoingTransactions != null && ongoingTransactions.size() > 0) {
				if(logger.isDebugEnabled()) {
					logger.debug("session state : " + session.getState());
					logger.debug("numbers of ongoing transactions : " + ongoingTransactions.size());
				}
				throw new IllegalStateException(
					"Bad state -- cannot set routing directive");
			}
		}
		routingDirective = directive;
		linkedRequest = origRequestImpl;
		//@jean.deruelle Commenting this out, is this really needed ?
//		RecordRouteHeader rrh = (RecordRouteHeader) request
//				.getHeader(RecordRouteHeader.NAME);
//		javax.sip.address.SipURI sipUri = (javax.sip.address.SipURI) rrh
//				.getAddress().getURI();
//
//		try {
//			if (directive == SipApplicationRoutingDirective.NEW) {
//				sipUri.setParameter("rd", "NEW");
//			} else if (directive == SipApplicationRoutingDirective.REVERSE) {
//				sipUri.setParameter("rd", "REVERSE");
//			} else if (directive == SipApplicationRoutingDirective.CONTINUE) {
//				sipUri.setParameter("rd", "CONTINUE");
//			}
//
//		} catch (Exception ex) {
//			String s = "error while setting routing directive";
//			logger.error(s, ex);
//			throw new IllegalArgumentException(s, ex);
//		}
	}
180189
public void setPrincipals(java.util.Collection<PrincipalIdFormat> principals) {
        if (principals == null) {
            this.principals = null;
            return;
        }

        this.principals = new com.amazonaws.internal.SdkInternalList<PrincipalIdFormat>(principals);
    }
934048
protected void setInternal(Object key, Data value, long ttl, TimeUnit timeunit, long maxIdle, TimeUnit maxIdleUnit) {
        Data keyData = toDataWithStrategy(key);
        MapOperation operation = operationProvider.createSetOperation(name, keyData, value,
                timeInMsOrOneIfResultIsZero(ttl, timeunit), timeInMsOrOneIfResultIsZero(maxIdle, maxIdleUnit));
        invokeOperation(keyData, operation);
    }
617080
@SdkTestInternalApi
    public void setOverrideDate(Date overriddenDate) {
        if (overriddenDate != null) {
            this.overriddenDate = new Date(overriddenDate.getTime());
        } else {
            this.overriddenDate = null;
        }
    }
189696
def reset_ttl(self, other):
        """"""
        self.created = other.created
        self.ttl = other.ttl
1370814
public void setPrincipals(java.util.Collection<String> principals) {
        if (principals == null) {
            this.principals = null;
            return;
        }

        this.principals = new java.util.ArrayList<String>(principals);
    }
1274021
public void set(String key, String value, int ttl) throws EtcdClientException {
        set(key, value, ttl, null);
    }
1187847
public void setType(BusItineraryHaltType type) {
		if (type != null && type != this.type) {
			this.type = type;
			firePrimitiveChanged();
		}
	}
1145593
public void setExpires(int seconds) throws IllegalArgumentException {
		javax.sip.address.URI uri = this.getAddress().getURI();

		if (uri instanceof SipURI) {
			/*
			SipURI sipUri = (SipURI) uri;
			try {
				sipUri.setParameter(EXPIRES_PARAM_NAME, Integer.toString(seconds));
			} catch (ParseException e) {
				throw new IllegalArgumentException("Problem setting parameter",
						e);
			}*/
			if(seconds == -1) {
				this.removeParameter(EXPIRES_PARAM_NAME);
				return;
			}
			this.setParameter(EXPIRES_PARAM_NAME, Integer.toString(seconds));
		} else {
			throw new IllegalArgumentException(
					"Can only set parameter for Sip URI");
		}
	}
1070686
private void primUpdate(boolean renewLock) throws GroupsException {
        getLockableGroupService().updateGroup(this, renewLock);
        clearPendingUpdates();
        this.invalidateInParentGroupsCache(Collections.singleton((IGroupMember) this));
    }
414536
@Override
    public void setProtocol(String protocol) throws Exception {
        this.protocol = protocol;
        if ("rtmps".equals(protocol) || "rtmpt".equals(protocol) || "rtmpte".equals(protocol) || "rtmfp".equals(protocol)) {
            throw new Exception("Unsupported protocol specified, please use the correct client for the intended protocol.");
        }
    }