Hi Tayyab
for static IP use
set ethernet-switching-options secure-access-port interface ge-0/0/10.0 static-ip 20.20.20.1 vlan vlanx
set ethernet-switching-options secure-access-port interface ge-0/0/10.0 static-ip 20.20.20.1 mac 00:xx
on uplink port
set ethernet-switching-options secure-access-port interface ge-0/0/23.0 dhcp-trusted
for rest of trafic you can add this.
set ethernet-switching-options secure-access-port vlan all arp-inspection
set ethernet-switching-options secure-access-port vlan all examine-dhcp
set ethernet-switching-options secure-access-port vlan all ip-source-guard