/** * <p> * The <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-security-identity.html">identity</a> to * which the policy is attached. * </p> * * @param target * The <a * href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-security-identity.html">identity</a> to * which the policy is attached. * @return Returns a reference to this object so that method calls can be chained together. */ public AttachPolicyRequest withTarget(String target) { setTarget(target); return this; }
/** * <p> * The <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-security-identity.html">identity</a> to * which the policy is attached. * </p> * * @param target * The <a * href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-security-identity.html">identity</a> to * which the policy is attached. * @return Returns a reference to this object so that method calls can be chained together. */ public AttachPolicyRequest withTarget(String target) { setTarget(target); return this; }