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

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

public static class SoapCallReturn.Builder
extends Object

Builder for SoapCallReturn objects.

Author:
Adam Rogal

Constructor Summary
SoapCallReturn.Builder()
          Constructor.
 
Method Summary
 SoapCallReturn build()
          Returns the SoapCallReturn this Builder has been constructing.
 SoapCallReturn.Builder withException(Throwable exception)
          Adds an exception to the SoapCallReturn under construction.
 SoapCallReturn.Builder withRequestInfo(RequestInfo requestInfo)
          Adds a request info to the SoapCallReturn under construction.
 SoapCallReturn.Builder withResponseInfo(ResponseInfo responseInfo)
          Adds a response info to the SoapCallReturn under construction.
 SoapCallReturn.Builder withReturnValue(Object returnValue)
          Adds a return value to the SoapCallReturn under construction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapCallReturn.Builder

public SoapCallReturn.Builder()
Constructor.

Method Detail

withReturnValue

public SoapCallReturn.Builder withReturnValue(Object returnValue)
Adds a return value to the SoapCallReturn under construction.

Parameters:
returnValue - the return value to add to the SoapCallReturn
Returns:
this builder

withResponseInfo

public SoapCallReturn.Builder withResponseInfo(ResponseInfo responseInfo)
Adds a response info to the SoapCallReturn under construction.

Parameters:
responseInfo - the response info to add to the SoapCallReturn
Returns:
this builder

withRequestInfo

public SoapCallReturn.Builder withRequestInfo(RequestInfo requestInfo)
Adds a request info to the SoapCallReturn under construction.

Parameters:
requestInfo - the request info to add to the SoapCallReturn
Returns:
this builder

withException

public SoapCallReturn.Builder withException(Throwable exception)
Adds an exception to the SoapCallReturn under construction.

Parameters:
exception - the exception to add to the SoapCallReturn
Returns:
this builder

build

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

Returns:
the built SoapCallReturn object


Copyright © 2012. All Rights Reserved.