public static MozuClient<List<com.mozu.api.contracts.productadmin.AttributeInProductType>> getOptionsClient(com.mozu.api.DataViewMode dataViewMode, Integer productTypeId) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.catalog.admin.attributedefinition.producttypes.ProductTypeOptionUrl.getOptionsUrl(productTypeId);
		String verb = "GET";
		Class<?> clz = new ArrayList<com.mozu.api.contracts.productadmin.AttributeInProductType>(){}.getClass();
		MozuClient<List<com.mozu.api.contracts.productadmin.AttributeInProductType>> mozuClient = (MozuClient<List<com.mozu.api.contracts.productadmin.AttributeInProductType>>) MozuClientFactory.getInstance(clz);
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		mozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());
		return mozuClient;

	}
public static MozuClient < List < com . mozu . api . contracts . productadmin . AttributeInProductType > > getOptionsClient ( com . mozu . api . DataViewMode dataViewMode , Integer productTypeId ) throws Exception { MozuUrl url = com . mozu . api . urls . commerce . catalog . admin . attributedefinition . producttypes . ProductTypeOptionUrl . getOptionsUrl ( productTypeId ) ; String verb = "GET" ; Class < ? > clz = new ArrayList < com . mozu . api . contracts . productadmin . AttributeInProductType > ( ) { } . getClass ( ) ; MozuClient < List < com . mozu . api . contracts . productadmin . AttributeInProductType > > mozuClient = ( MozuClient < List < com . mozu . api . contracts . productadmin . AttributeInProductType > > ) MozuClientFactory . getInstance ( clz ) ; mozuClient . setVerb ( verb ) ; mozuClient . setResourceUrl ( url ) ; mozuClient . addHeader ( Headers . X_VOL_DATAVIEW_MODE , dataViewMode . toString ( ) ) ; return mozuClient ; }
<p><pre><code>
MozuClient<List<com.mozu.api.contracts.productadmin.AttributeInProductType>> mozuClient=GetOptionsClient(dataViewMode,  productTypeId);
client.setBaseAddress(url);
client.executeRequest();
AttributeInProductType attributeInProductType = client.Result();
</code></pre></p>
@param productTypeId Identifier of the product type.
@param dataViewMode DataViewMode
@return Mozu.Api.MozuClient <List<com.mozu.api.contracts.productadmin.AttributeInProductType>>
@see com.mozu.api.contracts.productadmin.AttributeInProductType