List of usage examples for com.amazonaws DefaultRequest DefaultRequest
public DefaultRequest(AmazonWebServiceRequest originalRequest, String serviceName)
From source file:com.github.sjones4.youcan.youare.model.transform.CreateAccountRequestMarshaller.java
License:Open Source License
public Request<CreateAccountRequest> marshall(CreateAccountRequest createAccountRequest) { if (createAccountRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); }/* w w w . j a v a 2 s. com*/ Request<CreateAccountRequest> request = new DefaultRequest<>(createAccountRequest, "AmazonIdentityManagement"); request.addParameter("Action", "CreateAccount"); request.addParameter("Version", "2010-05-08"); if (createAccountRequest.getAccountName() != null) { request.addParameter("AccountName", StringUtils.fromString(createAccountRequest.getAccountName())); } return request; }
From source file:com.github.sjones4.youcan.youare.model.transform.DeleteAccountPolicyRequestMarshaller.java
License:Open Source License
public Request<DeleteAccountPolicyRequest> marshall(DeleteAccountPolicyRequest deleteAccountPolicyRequest) { if (deleteAccountPolicyRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); }// w w w .ja va2 s . com Request<DeleteAccountPolicyRequest> request = new DefaultRequest<>(deleteAccountPolicyRequest, "AmazonIdentityManagement"); request.addParameter("Action", "DeleteAccountPolicy"); request.addParameter("Version", "2010-05-08"); if (deleteAccountPolicyRequest.getAccountName() != null) { request.addParameter("AccountName", StringUtils.fromString(deleteAccountPolicyRequest.getAccountName())); } if (deleteAccountPolicyRequest.getPolicyName() != null) { request.addParameter("PolicyName", StringUtils.fromString(deleteAccountPolicyRequest.getPolicyName())); } return request; }
From source file:com.github.sjones4.youcan.youare.model.transform.DeleteAccountRequestMarshaller.java
License:Open Source License
public Request<DeleteAccountRequest> marshall(DeleteAccountRequest deleteAccountRequest) { if (deleteAccountRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); }//from w w w . j a v a2 s . c o m Request<DeleteAccountRequest> request = new DefaultRequest<>(deleteAccountRequest, "AmazonIdentityManagement"); request.addParameter("Action", "DeleteAccount"); request.addParameter("Version", "2010-05-08"); if (deleteAccountRequest.getAccountName() != null) { request.addParameter("AccountName", StringUtils.fromString(deleteAccountRequest.getAccountName())); } if (deleteAccountRequest.getRecursive() != null) { request.addParameter("Recursive", StringUtils.fromBoolean(deleteAccountRequest.getRecursive())); } return request; }
From source file:com.github.sjones4.youcan.youare.model.transform.GetAccountPolicyRequestMarshaller.java
License:Open Source License
public Request<GetAccountPolicyRequest> marshall(GetAccountPolicyRequest getAccountPolicyRequest) { if (getAccountPolicyRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); }/*from ww w.j av a2 s. co m*/ Request<GetAccountPolicyRequest> request = new DefaultRequest<>(getAccountPolicyRequest, "AmazonIdentityManagement"); request.addParameter("Action", "GetAccountPolicy"); request.addParameter("Version", "2010-05-08"); if (getAccountPolicyRequest.getAccountName() != null) { request.addParameter("AccountName", StringUtils.fromString(getAccountPolicyRequest.getAccountName())); } if (getAccountPolicyRequest.getPolicyName() != null) { request.addParameter("PolicyName", StringUtils.fromString(getAccountPolicyRequest.getPolicyName())); } return request; }
From source file:com.github.sjones4.youcan.youare.model.transform.ListAccountPoliciesRequestMarshaller.java
License:Open Source License
public Request<ListAccountPoliciesRequest> marshall(ListAccountPoliciesRequest listAccountPoliciesRequest) { if (listAccountPoliciesRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); }//from w w w .ja v a 2s . c om Request<ListAccountPoliciesRequest> request = new DefaultRequest<>(listAccountPoliciesRequest, "AmazonIdentityManagement"); request.addParameter("Action", "ListAccountPolicies"); request.addParameter("Version", "2010-05-08"); if (listAccountPoliciesRequest.getAccountName() != null) { request.addParameter("AccountName", StringUtils.fromString(listAccountPoliciesRequest.getAccountName())); } return request; }
From source file:com.github.sjones4.youcan.youare.model.transform.ListAccountsRequestMarshaller.java
License:Open Source License
public Request<ListAccountsRequest> marshall(ListAccountsRequest listAccountsRequest) { if (listAccountsRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); }/*from w w w . j ava 2s.c o m*/ Request<ListAccountsRequest> request = new DefaultRequest<>(listAccountsRequest, "AmazonIdentityManagement"); request.addParameter("Action", "ListAccounts"); request.addParameter("Version", "2010-05-08"); return request; }
From source file:com.github.sjones4.youcan.youare.model.transform.PutAccountPolicyRequestMarshaller.java
License:Open Source License
public Request<PutAccountPolicyRequest> marshall(PutAccountPolicyRequest putAccountPolicyRequest) { if (putAccountPolicyRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); }//from ww w. j a v a 2 s. c om Request<PutAccountPolicyRequest> request = new DefaultRequest<>(putAccountPolicyRequest, "AmazonIdentityManagement"); request.addParameter("Action", "PutAccountPolicy"); request.addParameter("Version", "2010-05-08"); if (putAccountPolicyRequest.getAccountName() != null) { request.addParameter("AccountName", StringUtils.fromString(putAccountPolicyRequest.getAccountName())); } if (putAccountPolicyRequest.getPolicyName() != null) { request.addParameter("PolicyName", StringUtils.fromString(putAccountPolicyRequest.getPolicyName())); } if (putAccountPolicyRequest.getPolicyDocument() != null) { request.addParameter("PolicyDocument", StringUtils.fromString(putAccountPolicyRequest.getPolicyDocument())); } return request; }
From source file:com.github.sjones4.youcan.youconfig.model.transform.DescribeComponentsRequestMarshaller.java
License:Open Source License
public Request<DescribeComponentsRequest> marshall(DescribeComponentsRequest describeComponentsRequest) { if (describeComponentsRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); }/* w w w .j a v a 2 s .co m*/ final Request<DescribeComponentsRequest> request = new DefaultRequest<>(describeComponentsRequest, "EucalyptusConfiguration"); request.addParameter("Action", "DescribeComponents"); request.addParameter("Version", "eucalyptus"); return request; }
From source file:com.github.sjones4.youcan.youprop.model.transform.DescribePropertiesRequestMarshaller.java
License:Open Source License
public Request<DescribePropertiesRequest> marshall(DescribePropertiesRequest describePropertiesRequest) { if (describePropertiesRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); }// ww w . j a va 2s . co m final Request<DescribePropertiesRequest> request = new DefaultRequest<>(describePropertiesRequest, "EucalyptusProperties"); request.addParameter("Action", "DescribeProperties"); request.addParameter("Version", "eucalyptus"); final List<String> propertiesList = describePropertiesRequest.getProperties(); int propertiesListIndex = 1; for (final String propertiesListValue : propertiesList) { if (propertiesListValue != null) { request.addParameter("Property." + propertiesListIndex, StringUtils.fromString(propertiesListValue)); } propertiesListIndex++; } return request; }
From source file:com.github.sjones4.youcan.youprop.model.transform.ModifyPropertyValueRequestMarshaller.java
License:Open Source License
public Request<ModifyPropertyValueRequest> marshall(ModifyPropertyValueRequest modifyPropertyValueRequest) { if (modifyPropertyValueRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); }/*from www . j ava 2s . co m*/ final Request<ModifyPropertyValueRequest> request = new DefaultRequest<>(modifyPropertyValueRequest, "EucalyptusProperties"); request.addParameter("Action", "ModifyPropertyValue"); request.addParameter("Version", "eucalyptus"); if (modifyPropertyValueRequest.getName() != null) { request.addParameter("Name", StringUtils.fromString(modifyPropertyValueRequest.getName())); } if (modifyPropertyValueRequest.getValue() != null) { request.addParameter("Value", StringUtils.fromString(modifyPropertyValueRequest.getValue())); } return request; }