Search in sources :

Example 1 with SdkInternalList

use of com.amazonaws.internal.SdkInternalList in project cloudbreak by hortonworks.

the class AwsPlatformResourcesTest method instanceProfile.

private InstanceProfile instanceProfile(int i) {
    InstanceProfile instanceProfile = new InstanceProfile();
    instanceProfile.setArn(String.format("arn-%s", i));
    instanceProfile.setCreateDate(new Date());
    instanceProfile.setInstanceProfileId(String.format("profilId-%s", i));
    instanceProfile.setInstanceProfileName(String.format("profilName-%s", i));
    SdkInternalList<Role> roles = new SdkInternalList();
    Role role = new Role();
    role.setRoleName(String.format("roleArn-%s", i));
    roles.add(role);
    return instanceProfile;
}
Also used : Role(com.amazonaws.services.identitymanagement.model.Role) InstanceProfile(com.amazonaws.services.identitymanagement.model.InstanceProfile) SdkInternalList(com.amazonaws.internal.SdkInternalList) Date(java.util.Date)

Aggregations

SdkInternalList (com.amazonaws.internal.SdkInternalList)1 InstanceProfile (com.amazonaws.services.identitymanagement.model.InstanceProfile)1 Role (com.amazonaws.services.identitymanagement.model.Role)1 Date (java.util.Date)1