com.google.api.ads.common.lib.soap
Class RequestInfo.Builder

java.lang.Object
  extended by com.google.api.ads.common.lib.soap.RequestInfo.Builder
Enclosing class:
RequestInfo

public static class RequestInfo.Builder
extends Object

Builder for RequestInfo objects.

Author:
Adam Rogal

Constructor Summary
RequestInfo.Builder()
          Constructor.
 
Method Summary
 RequestInfo build()
          Returns the RequestInfo this Builder has been constructing.
 RequestInfo.Builder withMethodName(String methodName)
          Adds a method name to the RequestInfo under construction.
 RequestInfo.Builder withServiceName(String serviceName)
          Adds a service name to the RequestInfo under construction.
 RequestInfo.Builder withSoapRequestXml(String soapRequestXml)
          Adds the SOAP request XML to the RequestInfo under construction.
 RequestInfo.Builder withUrl(String url)
          Adds the target URL to the RequestInfo under construction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestInfo.Builder

public RequestInfo.Builder()
Constructor.

Method Detail

withMethodName

public RequestInfo.Builder withMethodName(String methodName)
Adds a method name to the RequestInfo under construction.

Parameters:
methodName - the method name to add to the RequestInfo
Returns:
this builder

withServiceName

public RequestInfo.Builder withServiceName(String serviceName)
Adds a service name to the RequestInfo under construction.

Parameters:
serviceName - the service name to add to the RequestInfo
Returns:
this builder

withSoapRequestXml

public RequestInfo.Builder withSoapRequestXml(String soapRequestXml)
Adds the SOAP request XML to the RequestInfo under construction.

Parameters:
soapRequestXml - the raw SOAP request XML to add to the RequestInfo
Returns:
this builder

withUrl

public RequestInfo.Builder withUrl(String url)
Adds the target URL to the RequestInfo under construction.

Parameters:
url - the URL that the request was made to
Returns:
this builder

build

public RequestInfo build()
Returns the RequestInfo this Builder has been constructing.

Returns:
the built RequestInfo object


Copyright © 2012. All Rights Reserved.