Enum Principal.Services

  • All Implemented Interfaces:
    Serializable, Comparable<Principal.Services>
    Enclosing class:
    Principal

    public static enum Principal.Services
    extends Enum<Principal.Services>
    The services who have the right to do the assume the role action. The AssumeRole action returns a set of temporary security credentials that you can use to access resources that are defined in the role's policy. The returned credentials consist of an Access Key ID, a Secret Access Key, and a security token.
    • Method Detail

      • values

        public static Principal.Services[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Principal.Services c : Principal.Services.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Principal.Services valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getServiceId

        public String getServiceId()
      • fromString

        public static Principal.Services fromString​(String serviceId)
        Construct the Services object from a string representing the service id.