public void marshall(Organization organization, ProtocolMarshaller protocolMarshaller) {

        if (organization == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(organization.getId(), ID_BINDING);
            protocolMarshaller.marshall(organization.getArn(), ARN_BINDING);
            protocolMarshaller.marshall(organization.getFeatureSet(), FEATURESET_BINDING);
            protocolMarshaller.marshall(organization.getMasterAccountArn(), MASTERACCOUNTARN_BINDING);
            protocolMarshaller.marshall(organization.getMasterAccountId(), MASTERACCOUNTID_BINDING);
            protocolMarshaller.marshall(organization.getMasterAccountEmail(), MASTERACCOUNTEMAIL_BINDING);
            protocolMarshaller.marshall(organization.getAvailablePolicyTypes(), AVAILABLEPOLICYTYPES_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( Organization organization , ProtocolMarshaller protocolMarshaller ) { if ( organization == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( organization . getId ( ) , ID_BINDING ) ; protocolMarshaller . marshall ( organization . getArn ( ) , ARN_BINDING ) ; protocolMarshaller . marshall ( organization . getFeatureSet ( ) , FEATURESET_BINDING ) ; protocolMarshaller . marshall ( organization . getMasterAccountArn ( ) , MASTERACCOUNTARN_BINDING ) ; protocolMarshaller . marshall ( organization . getMasterAccountId ( ) , MASTERACCOUNTID_BINDING ) ; protocolMarshaller . marshall ( organization . getMasterAccountEmail ( ) , MASTERACCOUNTEMAIL_BINDING ) ; protocolMarshaller . marshall ( organization . getAvailablePolicyTypes ( ) , AVAILABLEPOLICYTYPES_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.