If i understand the question you would like to confiure router with VLAN's if this is correct.
here is the same configuration ;
Router
interface GigabitEthernet0/0.10
encapsulation dot1q 10 native
ip address X.X.X.X 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1q 20
ip address Y.Y.Y.Y 255.255.255.0
!
interface GigabitEthernet0/0.30
encapsulation dot1q 30
ip address Z.Z.Z.Z 255.255.255.0
2-1001 ( VLAN 1 Default VLAN) - Standard VLAN's
1006-4094 - Extended VLAN you can use.