Package com.cosmicpush.app.domain.clients.config

Source Code of com.cosmicpush.app.domain.clients.config.AwsEmailConfig

/*
* Copyright (c) 2014 Jacob D. Parr
*
* This software may not be used without permission.
*/

package com.cosmicpush.app.domain.clients.config;

import com.cosmicpush.app.domain.clients.actions.CreateAwsEmailConfigAction;
import com.cosmicpush.pub.internal.RequestErrors;
import java.io.Serializable;

public class AwsEmailConfig implements Serializable {

  private String accessKeyId;
  private String secretKey;
  private String recipientOverride;
  private String testAddress;

  public AwsEmailConfig() {
  }

  public AwsEmailConfig create(CreateAwsEmailConfigAction action) {
    action.validate(new RequestErrors()).assertNoErrors();

    this.accessKeyId = action.getAccessKeyId();
    this.secretKey = action.getSecretKey();
    this.testAddress = action.getTestAddress();
    this.recipientOverride = action.getRecipientOverride();

    return this;
  }

  public String getAccessKeyId() {
    return accessKeyId;
  }

  public String getSecretKey() {
    return secretKey;
  }

  public String getRecipientOverride() {
    return recipientOverride;
  }

  public String getTestAddress() {
    return testAddress;
  }
}
TOP

Related Classes of com.cosmicpush.app.domain.clients.config.AwsEmailConfig

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.