本文整理汇总了Java中com.amazonaws.services.sns.model.DeleteEndpointRequest类的典型用法代码示例。如果您正苦于以下问题:Java DeleteEndpointRequest类的具体用法?Java DeleteEndpointRequest怎么用?Java DeleteEndpointRequest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeleteEndpointRequest类属于com.amazonaws.services.sns.model包,在下文中一共展示了DeleteEndpointRequest类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testNonInjectableMocks_shouldReturnNormal
import com.amazonaws.services.sns.model.DeleteEndpointRequest; //导入依赖的package包/类
@Test
public void testNonInjectableMocks_shouldReturnNormal() {
mockSns(new MockParameters());
CheckIfPhoneNumberIsOptedOutRequest phoneRequest = new CheckIfPhoneNumberIsOptedOutRequest()
.withPhoneNumber("555123456");
CheckIfPhoneNumberIsOptedOutResult phoneResult = sns.checkIfPhoneNumberIsOptedOut(phoneRequest);
assertNotNull(phoneResult);
CreatePlatformApplicationRequest createPlatformRequest = new CreatePlatformApplicationRequest()
.withAttributes(ImmutableMap.of("os","oreo"))
.withName("android").withPlatform("mobile");
assertNotNull(sns.createPlatformApplication(createPlatformRequest));
CreatePlatformEndpointRequest createPlatformEndpointReq = new CreatePlatformEndpointRequest()
.withAttributes(ImmutableMap.of("os","lollypop"))
.withCustomUserData("something custom")
.withPlatformApplicationArn("mobile")
.withToken("5-euro-token");
assertNotNull(sns.createPlatformEndpoint(createPlatformEndpointReq));
DeleteEndpointRequest deleteEndpointReq = new DeleteEndpointRequest()
.withEndpointArn("arn:aws:sms:us-east-1:123456789012:myc:02034b43-fefa-4e07-a5e");
assertNotNull(sns.deleteEndpoint(deleteEndpointReq));
DeletePlatformApplicationRequest delPlatformAppReq = new DeletePlatformApplicationRequest()
.withPlatformApplicationArn("arn:aws:sms:us-east-1:123456789012:myc:02034b43-fefa-4e07-a5e");
assertNotNull(sns.deletePlatformApplication(delPlatformAppReq));
GetEndpointAttributesRequest getEndpointAttr = new GetEndpointAttributesRequest();
assertNotNull(sns.getEndpointAttributes(getEndpointAttr));
assertNotNull(sns.getPlatformApplicationAttributes(
new GetPlatformApplicationAttributesRequest().withPlatformApplicationArn("some-arn")));
assertNotNull(sns.getSMSAttributes(new GetSMSAttributesRequest().withAttributes("attr1","attr2")));
assertNotNull(sns.listEndpointsByPlatformApplication(new ListEndpointsByPlatformApplicationRequest()
.withNextToken("0-euro-token").withPlatformApplicationArn("cheap-arn")));
assertNotNull(sns.listPhoneNumbersOptedOut(new ListPhoneNumbersOptedOutRequest().withNextToken("plastic-token")));
assertNotNull(sns.listPlatformApplications(new ListPlatformApplicationsRequest().withNextToken("wooden-token")));
assertNotNull(sns.listPlatformApplications());
assertNotNull(sns.optInPhoneNumber(new OptInPhoneNumberRequest().withPhoneNumber("123456789")));
assertNotNull(sns.setEndpointAttributes(new SetEndpointAttributesRequest().withEndpointArn("at the end of the world")
.withAttributes(ImmutableMap.of("some-prop","some-value"))));
assertNotNull(sns.setPlatformApplicationAttributes(new SetPlatformApplicationAttributesRequest().withPlatformApplicationArn("arnn:::")
.withAttributes(ImmutableMap.of("super","mario"))));
assertNotNull(sns.setSMSAttributes(new SetSMSAttributesRequest().withAttributes(ImmutableMap.of("wtf","mfg"))));
assertNotNull(sns.removePermission(new RemovePermissionRequest().withLabel("fashion label").withTopicArn("fancy topic")));
}
示例2: delete
import com.amazonaws.services.sns.model.DeleteEndpointRequest; //导入依赖的package包/类
@Override
public void delete(DeleteEndpointRequest request) {
delete(request, null);
}
示例3: tearDown
import com.amazonaws.services.sns.model.DeleteEndpointRequest; //导入依赖的package包/类
public static void tearDown() {
endpoint.delete(new DeleteEndpointRequest());
}
示例4: delete
import com.amazonaws.services.sns.model.DeleteEndpointRequest; //导入依赖的package包/类
/**
* Performs the <code>Delete</code> action.
*
* <p>
* The following request parameters will be populated from the data of this
* <code>PlatformEndpoint</code> resource, and any conflicting parameter
* value set in the request will be overridden:
* <ul>
* <li>
* <b><code>EndpointArn</code></b>
* - mapped from the <code>Arn</code> identifier.
* </li>
* </ul>
*
* <p>
*
* @see DeleteEndpointRequest
*/
void delete(DeleteEndpointRequest request);