Search in sources :

Example 6 with PinpointClient

use of software.amazon.awssdk.services.pinpoint.PinpointClient in project aws-doc-sdk-examples by awsdocs.

the class UpdateEmailChannel method main.

// snippet-start:[pinpoint.java2.updateemailchannel.main]
public static void main(String[] args) {
    // TODO: Provide ApplicationId/ProjectId
    String appId = "";
    PinpointClient pinpoint = PinpointClient.builder().region(Region.US_EAST_1).build();
    EmailChannelResponse getResponse = getEmailChannel(pinpoint, appId);
    System.out.println("Response : " + getResponse);
    pinpoint.close();
}
Also used : PinpointClient(software.amazon.awssdk.services.pinpoint.PinpointClient)

Example 7 with PinpointClient

use of software.amazon.awssdk.services.pinpoint.PinpointClient in project aws-doc-sdk-examples by awsdocs.

the class ListEndpointIds method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage: " + "   <applicationId> <userId>\n\n" + "Where:\n" + "   applicationId - The ID of the Amazon Pinpoint application that has the endpoint.\n" + "   userId - The user id applicable to the endpoints";
    if (args.length != 2) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String applicationId = args[0];
    String userId = args[1];
    PinpointClient pinpoint = PinpointClient.builder().region(Region.US_EAST_1).build();
    listAllEndpoints(pinpoint, applicationId, userId);
    pinpoint.close();
}
Also used : PinpointClient(software.amazon.awssdk.services.pinpoint.PinpointClient)

Example 8 with PinpointClient

use of software.amazon.awssdk.services.pinpoint.PinpointClient in project aws-doc-sdk-examples by awsdocs.

the class LookUpEndpoint method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage: " + "LookUpEndpoint <appId> <endpoint>\n\n" + "Where:\n" + "  appId - the ID of the application to delete.\n\n" + "  endpoint - the ID of the endpoint. ";
    if (args.length != 2) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String appId = args[0];
    String endpoint = args[1];
    System.out.println("Looking up an endpoint point with ID: " + endpoint);
    PinpointClient pinpoint = PinpointClient.builder().region(Region.US_EAST_1).build();
    lookupPinpointEndpoint(pinpoint, appId, endpoint);
    pinpoint.close();
}
Also used : PinpointClient(software.amazon.awssdk.services.pinpoint.PinpointClient)

Example 9 with PinpointClient

use of software.amazon.awssdk.services.pinpoint.PinpointClient in project aws-doc-sdk-examples by awsdocs.

the class UpdateChannel method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage: " + "CreateChannel <appId>\n\n" + "Where:\n" + "  appId - the name of the application whose channel is updated.\n\n";
    if (args.length != 1) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String appId = args[0];
    PinpointClient pinpoint = PinpointClient.builder().region(Region.US_EAST_1).build();
    SMSChannelResponse getResponse = getSMSChannel(pinpoint, appId);
    toggleSmsChannel(pinpoint, appId, getResponse);
    pinpoint.close();
}
Also used : PinpointClient(software.amazon.awssdk.services.pinpoint.PinpointClient) SMSChannelResponse(software.amazon.awssdk.services.pinpoint.model.SMSChannelResponse)

Example 10 with PinpointClient

use of software.amazon.awssdk.services.pinpoint.PinpointClient in project aws-doc-sdk-examples by awsdocs.

the class AddExampleUser method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage: " + "   <appId>\n\n" + "Where:\n" + "   appId - the ID of the application to delete.\n\n";
    if (args.length != 2) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String applicationId = args[0];
    String endPointId = args[1];
    PinpointClient pinpoint = PinpointClient.builder().region(Region.US_EAST_1).build();
    updatePinpointEndpoint(pinpoint, applicationId, endPointId);
    pinpoint.close();
}
Also used : PinpointClient(software.amazon.awssdk.services.pinpoint.PinpointClient)

Aggregations

PinpointClient (software.amazon.awssdk.services.pinpoint.PinpointClient)18 Region (software.amazon.awssdk.regions.Region)1 CreateImportJobResponse (software.amazon.awssdk.services.pinpoint.model.CreateImportJobResponse)1 CreateSegmentResponse (software.amazon.awssdk.services.pinpoint.model.CreateSegmentResponse)1 EndpointResponse (software.amazon.awssdk.services.pinpoint.model.EndpointResponse)1 GetEndpointResponse (software.amazon.awssdk.services.pinpoint.model.GetEndpointResponse)1 ImportJobResponse (software.amazon.awssdk.services.pinpoint.model.ImportJobResponse)1 SMSChannelResponse (software.amazon.awssdk.services.pinpoint.model.SMSChannelResponse)1 SegmentResponse (software.amazon.awssdk.services.pinpoint.model.SegmentResponse)1 UpdateEndpointResponse (software.amazon.awssdk.services.pinpoint.model.UpdateEndpointResponse)1 S3Client (software.amazon.awssdk.services.s3.S3Client)1